How can I create an array from the values of another array's key?

前端 未结 4 758
走了就别回头了
走了就别回头了 2021-02-01 18:38

I have an array as follows:

$arr1 = array(
  0 => array(
    \'name\' => \'tom\',
    \'age\' => 22
  ),
  1 => array(
    \'name\' => \'nick\',
           


        
4条回答
提交回复
热议问题