So I have an array in php like this:
array(
22 => array()
23 => array()
25 => array()
)
I am using array_column in search_array to search a column in the sub arrays.
$index=array_search('needlehere',array_column(myarray,'columnbeingsearchedhere'))
But the array_column is not using the correct indexes, but reindexing them to be 0,1,2...
Is there anyway to keep the correct indexes?
array_columnis used to get the common index columns....array_find_key(): Get the first level key of the first row containing a specified column value in a 2d array