note 48213 deleted from control-structures.else by nlopess

From: Date: Thu, 11 Aug 2005 11:35:55 +0000
Subject: note 48213 deleted from control-structures.else by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93421@lists.php.net to get a copy of this message
Note Submitter: ---- cgeng, the negative value is intentional: echo "You have $i message".($i-1?"s":"")." in your mailbox.\n"; With one and only one message, this prints "You have 1 message in your mailbox." With any and all other values, it prints "You have # messages in your mailbox." This is grammatically correct for all values of $i.

« previous php.notes (#93421) next »