easy question but i can't find a solution.
I have an array:
array
0 =>
array
1 => string '25' (length=2)
1 =>
array
1 => string '27' (length=2)
And i need to get:
array
0 => string '25' (length=2)
1 => string '27' (length=2)
Yea if course i could do:
foreach($result as $each) {
$resultIds[]=$each[1];
}
But i am pretty sure i saw this week somewhere a function for it something like...
array_something('current',$result);
What will loop over the array as foreach and return the first element so the result will be the same as the foreach solution. But i can't find it or remember it.
*What is the name of the function ? *