kat
My Journal

Home
Get Email Updates
Me on Facebook
Kenny Wyland
Koyote
Thea
Nobody
LB
Electric Grandmother
Rhubarb
Lisa Marie
Netter
Girl Child
Red Diana
Stacy
Firewolf
Thinking as a Hobby
Bringing Up Ben & Birdy (Catherine Newman)
mom2my6pack.blogspot.com
K Jenkins Art
Email Me

Admin Password

Remember Me

543628 Curiosities served
Share on Facebook

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

Powered by JournalScape © 2001-2010 JournalScape.com. All rights reserved.
All content rights reserved by the author.
custsupport@journalscape.com