help with a php array -
i have array looks this,
array ( [email_address] => array ( [0] => sadasdasd [1] => simosdsad ) [firstname] => array ( [0] => sadsadas [1] => simon ) [surname] => array ( [0] => asdasdasdasdasd [1] => ainley ) [companies_company_id] => [save_user] => save user )
all keys [0] related there away make these there own array?
a simple way this:
$newarray = array(); foreach($array $key => $value) { $newarray[] = $value[0]; }
is there reason haven't?
Comments
Post a Comment