Home >Backend Development >PHP Tutorial >How does foreach traverse an array and only retain values, no key values?
I want to take out only the uid in each key value, but without the subscript.
I want to take out only the uid in each key value, but without the subscript.
array_column($arr, 'uid');
Also
<code>$temp = array(); foreach ($a as $b) { $temp[] = $b['uid']; }</code>