Before Names:
array(6) {
[0]=>
string(9) "Ted Lewis"
[1]=>
string(9) "Sue Jones"
[2]=>
string(10) "Ray Thomas"
[3]=>
string(10) "Biggie Dog"
[4]=>
string(13) "Leonardo Lion"
[5]=>
string(7) "Top Cat"
}
After deleting [2]:
array(5) {
[0]=>
string(9) "Ted Lewis"
[1]=>
string(9) "Sue Jones"
[3]=>
string(10) "Biggie Dog"
[4]=>
string(13) "Leonardo Lion"
[5]=>
string(7) "Top Cat"
}
Name[1]: [Sue Jones]
Name[2]: []
After removing gaps:
array(5) {
[0]=>
string(9) "Ted Lewis"
[1]=>
string(9) "Sue Jones"
[2]=>
string(10) "Biggie Dog"
[3]=>
string(13) "Leonardo Lion"
[4]=>
string(7) "Top Cat"
}