PHP array_column() functionIt is an inbuilt function in PHP. The array_column() function is used to return the values from a single column in the input array. This function is introduced in PHP 5.5. Syntax
Example 1Output: Array( [0] => sid [1] => sonoo ) Example 2Output: Array ( [0] => c [1] => java [2] => php ) Example 3Output: Array ( [11] => c [12] => php [13] => java ) Example 4Output: Array ( [0] => Cricket [1] => Football [2] => Chess )
Next TopicPHP Array Functions
|