note 15527 added to function.array
| From: | deepak_pradhan at yahoo dot com | Date: | Sat, 15 Sep 2001 21:16:23 +0000 |
| Subject: | note 15527 added to function.array | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18047@lists.php.net to get a copy of this message | ||
I have seen that most of the time we get confused with Mult-Dimensional arrays.
I found print_r to be very helpful here.
Say the defined array is:
$a = array(1,2,array("A","B"));
print_r ($a);
Should give result like this:
Array ( [0] => 1 [1] => 2 [2] => Array ( [0] => A [1] => B ) )
We can see here that:
$a is an array, $a[0]=1, $a[1]=2 and $a[2]=array it self with two elements.
thx
dp
http://www.php.net/manual/en/function.array.php