kat My Journal 543628 Curiosities served |
2005-01-27 2:02 PM geeks Previous Entry :: Next Entry Mood: amused Read/Post Comments (0) I was looking up the php function array_merge on php.net and came across this example. Somebody's a Clerks fan. :)
Example 3. array_merge() example $array_one = array(0 => "jay", 1 => "bob", 2 => "randal", 3 => "dante"); $array_two = array("jay" => "bob", "randal" => "dante", "jay" => "jason"); unset($array_one[2]); $result_one = array_merge($array_one); $result_two = array_merge($array_two); print_r($result_one); print_r($result_two); ?> The above example will output: Array ( [0] => jay [1] => bob [2] => dante ) Array ( [jay] => jason [randal] => dante ) Read/Post Comments (0) Previous Entry :: Next Entry Back to Top |
||||||
© 2001-2010 JournalScape.com. All rights reserved. All content rights reserved by the author. custsupport@journalscape.com |