This problem often occurs at work. I get a two-dimensional array, but the array only contains id and name. For example, this array is like this: $ arrayarray (array (& amp; #39; id & amp; #39; & amp; gt; a, & amp; #39; name & amp; #39; & amp; gt; & amp; #39; Hy369 & amp; #39;), array (& amp; #39; id & amp; #39; & amp; gt; B, & amp; #39; name & amp; #39; & amp; gt; & amp; #39; PHP blogs and am often encounter such problems. I get a two-dimensional array, but the array only contains id and name. For example, this array is like this: $ array = array ('id' => a, 'name' => 'hy369'), array ('id' => B, 'name' => 'php blog'), array ('id' => c, 'name' => 'emlog'),); sometimes we need to use this array, get a new array like the following: sometimes we need to use this array to get a new array like the following: $ newArray = array ('hy369', 1. notes
1. Detailed introduction to array_column
Introduction: In linux, awk, wc, sort, uniq, and grep are used to analyze and count nginx logs. B ). field meaning (as described below) column1: ip_address column2: log_time column3: request column4: status_code column5: send_bytes column6: referer
[Related Q & A recommendations ]:
Why can't I add fields to a mysql table?
Javascript-selection of keys in column settings of table components in antd
Statistics-SQL syntax error caused by MYSQL version problems! Unknow column 'sqlstr'
Jdbc/SQL encoding problems in java
Linux-ssh server on the offline machine, after stty-a, the result is 0 or undef. Does anyone know what the situation is? how do I set it locally?
The above is a detailed article about the php column () function. For more information, see other related articles in the first PHP community!