Reply to joining two arrays together

Your name:

Reply:


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 )

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация