Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread Jason Wong
On Wednesday 15 October 2003 22:05, bob pilly wrote: > Yes it is what i expect to be stored in the array. [snip] > That is one array stored in $rslt[0] and another in $rslt[1] (perhaps i > am not understanding arrays correctly?) > > The thing that confuses me is if i assign the contents of an arr

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread bob pilly
Yes it is what i expect to be stored in the array. Array ( [0] => Array ( [0] => 0 [1] => 4 [2] => 1 [3] => 1 [4] => 0 [5] => 2 [6] => 0 [7] => 0 [8] => 0 [9] => 0 ) [1] => Array ( [0] => 0 [1] => 5 [2] => 3 [3] => 5 [4] => 3 [5] => 3 [6] => 0 [7] => 13 [8] => 0 [9] => 1 ) ) That is one array st

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread Jason Wong
On Wednesday 15 October 2003 21:02, bob pilly wrote: > print $rslt[0][1]; What does print_r($rslt) give you? Is it what you expected? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Devel

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread bob pilly
here you go: Cheers Bob Jason Wong <[EMAIL PROTECTED]> wrote: On Wednesday 15 October 2003 17:44, bob pilly wrote: > Im having problems printing values from a 2 dimensional array: > If i have: > temp[0]=array(0,10,11); > temp[1]=array(a,b,c); > print $temp[0][1]; > > i expected the output to be

Re: [PHP] printing values from a 2 dimension array

2003-10-15 Thread Jason Wong
On Wednesday 15 October 2003 17:44, bob pilly wrote: > Im having problems printing values from a 2 dimensional array: > If i have: > temp[0]=array(0,10,11); > temp[1]=array(a,b,c); > print $temp[0][1]; > > i expected the output to be '10' instead i get 'Array[1]', however if i > use: > > $var=$tem