problems creating a multi-dimensional array
Posted: Fri Mar 05, 2004 1:16 pm
I have several arrays in squence from a form, with keys
What I want to do is to get all the different arrays into one multidimensional array so I would have
field 1,field2, field3 etc for each key
I seem to keep getting "array" printed this is what I have thus far
(leaving off the array just errors)
any help appreciated
What I want to do is to get all the different arrays into one multidimensional array so I would have
field 1,field2, field3 etc for each key
I seem to keep getting "array" printed this is what I have thus far
Code: Select all
<?php
$myarray=array($id,$firstname);
foreach($myarray as $value){
echo $value;
}
?>any help appreciated