Re: [PHP] String: Arrays of arrays.

2004-12-23 Thread Jason Wong
On Thursday 23 December 2004 15:39, Song Ken Vern-E11804 wrote: > print "\n"; /* line?? */ > > to include :- > > $cid = $groups[$i][$j]; > print "\n"; /* line?? */ > > I seem to get the results I want. > > Why is this? Is there a syntax error? You need to change it to this: print "\n"; See m

RE: [PHP] String: Arrays of arrays.

2004-12-23 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 23 December 2004 07:39, Song Ken Vern-E11804 wrote: > Hi, > > I have an array of array of strings :- > > $g1 = array("453", "592"); > $g2 = array("e14", "e15", "e13"); > $group

[PHP] String: Arrays of arrays.

2004-12-22 Thread Song Ken Vern-E11804
Hi, I have an array of array of strings :- $g1 = array("453", "592"); $g2 = array("e14", "e15", "e13"); $groups = array($g1, $g2); I traverse and print out the value using :- for ($i = 0; $i < sizeof($groups); $i++) { for ($j = 0; $j < sizeof($groups[$i]); $j++) { pr