note 1012 deleted from count by ronabop

From: Date: Wed, 23 Aug 2000 06:23:21 +0000
Subject: note 1012 deleted from count by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2944@lists.php.net to get a copy of this message
I think you're right... it seems like it does return the array index of the last element. This code never gives me the last element of an array: <pre>$rand_index = rand(0, count($banners) - 1);</pre>... If I take out the <pre>-1</pre>, it does.

« previous php.notes (#2944) next »