Is there a function to extract a 'column' from an array in PHP? -


i have array of arrays, following structure :

array(array('page' => 'page1', 'name' => 'pagename1')       array('page' => 'page2', 'name' => 'pagename2')       array('page' => 'page3', 'name' => 'pagename3')) 

is there built-in function return new array values of 'name' keys? i'd get:

array('pagename1', 'pagename2', 'pagename3') 

why have built in function? no, there none, write own.

here nice , easy one, opposed others in thread.

$namearray = array();  foreach ($array $item) {     $namearray[] = $item['name']; } 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -