Is it possible to get a result from array_column that has values only?
sample array i want to array_column
$array = [
['name' => ''],
['name' => 'John'],
['name' => 'Doe']
]
when i use array_column this is what i get
Array
(
[0] =>
[1] => John
[2] => Doe
)
I was going to just use foreach and check each and every value but i was wondering if there is a much easier way to do this
thanks