Created
October 13, 2016 09:30
-
-
Save SirDarcanos/6f0255cf2f8085cdaded98b89cb1fa60 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$foods = array( | |
array( | |
'id' => 4, | |
'name' => 'Banana', | |
'color' => 'Yellow', | |
), | |
array( | |
'id' => '5', | |
'name' => 'Apple', | |
'color' => 'Red', | |
), | |
array( | |
'id' => 2, | |
'name' => 'Lettuce', | |
'color' => 'Green', | |
), | |
array( | |
'id' => '7', | |
'name' => 'Apple', | |
'color' => 'Red', | |
), | |
); | |
$foods = wp_list_pluck( $foods, 'name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment