PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $array = array('name' => 'aalaap','age' => 29, 'location' => 'mumbai'); $answer = array(); array_walk($array, create_function('$val,$key', 'global $answer; $answer[]=$key; $answer[]=$val;')); var_dump($answer); // Print the resulting
Show:  
Copy Clear