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
Post a Comment