|
Posted by petermichaux on 09/14/05 21:36
Hi,
I would like to join two arrays togther something like the following. I
don't know a simple way to create $stack3.
Thanks,
Peter
<?php
$stack1 = array("orange", "banana");
$stack2 = array("apple", "pear");
// do what for the next line?
$stack3 = ($stack1, $stack2);
print_r($stack3);
// The results I would like
// Array ( [0] => orange [1] => banana [2] => apple [3] => pear )
?>
Navigation:
[Reply to this message]
|