note 13999 rejected and deleted from function.array.php by zak
| From: | zak@php.net | Date: | Fri, 13 Jul 2001 03:11:08 +0000 |
| Subject: | note 13999 rejected and deleted from function.array.php by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15307@lists.php.net to get a copy of this message | ||
For those familiar with PERL, $#array is equal to the last index number of an array. I am new to PHP
and am not aware of a similar built-in variable that would give me the same result. So I used the
following
$myarray = array('one','two','three');
$arraylen = sizeof($myarray);
$arraylen -= 1;
I hope there is something easier....?