Array (
[0] => Angiogram - $10,000
[1] =>
[2] =>
[3] =>
)
This is my array format and I need to remove all empty index from this array. I tried Using array_filter() but it is not working. Please help.
I need result like:
Array([0]=> Angiogram-$10,000)
$array = array_filter($array);works perfectly wellvar_dump($arr);?string(65) ""suggests a lot of hidden characters such as nulls in a 65-byte string, clearly it isn't empty