note 51021 deleted from control-structures.else by nlopess

From: Date: Thu, 11 Aug 2005 11:36:37 +0000
Subject: note 51021 deleted from control-structures.else by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93423@lists.php.net to get a copy of this message
Note Submitter: jak at mNuOnSkPeAeMs dot co dot uk ---- Surely it should print "messages" for all values except 1. i.e. You have 0 messages, You have 1 message, You have 2 messages. So wouldn't this be the easy answer...? <?php echo "You have $i message".($i!=1?"s":"")." in your mailbox.\n"; ?>

« previous php.notes (#93423) next »