note 11740 deleted from else by ronabop

From: Date: Sat, 10 Mar 2001 21:44:03 +0000
Subject: note 11740 deleted from else by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-12181@lists.php.net to get a copy of this message
> echo "You have $i ". ($i==1 ? "message" : "messages"). " in > your mailbox.n"; I would use: echo "You have $i message" . ($i ? "s" : "") . " in your mailbox.n"; At least, in most interpreted languages i've used, that would be faster/looks nicer. :)

« previous php.notes (#12181) next »