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
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
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
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
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
Hi all
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=$temp[0][1];print $var; i get '10' as the output. This is fine but
6 matches
Mail list logo