note 106434 deleted from function.count by danbrown

From: Date: Tue, 15 Nov 2011 16:43:03 +0000
Subject: note 106434 deleted from function.count by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-184492@lists.php.net to get a copy of this message
Note Submitter: alex dot hristov dot 88 at gmail dot com ---- In addition to gothamxi's note-it should be <?php $count_topics=count($topic)-1; echo ("What do you think about ".$topic[ rand( 0, $count_topics ) ]."? "); ?> Otherwise the [0] value of the array will never be shown and in some cases it would display. <?php //What do you think about? ?>

« previous php.notes (#184492) next »