note 13999 added to function.array.php

From: Date: Thu, 12 Jul 2001 20:30:19 +0000
Subject: note 13999 added to function.array.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15302@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....? http://www.php.net/manual/en/function.array.php

« previous php.notes (#15302) next »