Re: Multidimensial Array !!!!!
| From: | _lallous | Date: | Mon, 15 Oct 2001 14:34:52 +0000 |
| Subject: | Re: Multidimensial Array !!!!! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9852@lists.php.net to get a copy of this message | ||
<?
$characters = array (
array("name"=> "bob",
"oupation"=> "superhero","age"=> 30),
array("name"=> "sir",
"oupation"=>"sup","age"=> 66),
array("name"=> "sir",
"oupation"=>"sup","age"=> 76));
$first=array("name"=> "Desire",
"oupation"=> "skolere","age"=> 876);
array_push($characters, $first);
var_dump($characters);
?>
check array functions too
"Serkan" <s.serkan@chello.nl> wrote in message
news:016f01c15573$07921a20$44542ed5@asdfap3n13edh8...
Hi all,
Say I have a multid. array $characters(see below). My question is how I =
can add the array $first to array $characters. At the end I gotta have 4 =
arrays in my multid. array $characters. Is this possible ???????
$characters = array (
array(name= "bob",
oupation= "superhero",age= 30),
array(name= "sir",
oupation="sup",age= 66),
array(name= "sir",
oupation="sup",age= 76));
Array $first must be put in multidimensial array $characters .
$first=array(name= "Desire",
oupation= "skolere",age= 876);
Thanxx in advance
Serkan
S.SERKAN@CHELLO.NL