PHP Array and unset function -


i have array this.

    array     (         [0] => array             (                 [email] => abc@gmail.com                 [timestamp] => 2013-05-03 09:20:01             )          [1] => array             (                 [email] => def@gmail.com                 [timestamp] => 2013-05-03 09:20:23             )          [2] => array             (                 [email] => ghi@gmail.com                 [timestamp] => 2013-05-03 09:20:43             )      ) 

i want simple this.

    array     (         [0] => abc@gmai1.com         [1] => def@gmail.com         [2] => ghi@gmail.com     ) 

i have tried unset function still doesn't work expected.

i not big array concept , hence stupid questions !!! :(

foreach($foo $key=>$value) {   $foo[$key] = $value['email']; } 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -