note 51982 deleted from control-structures.alternative-syntax by victor

From: Date: Mon, 18 Apr 2005 06:19:25 +0000
Subject: note 51982 deleted from control-structures.alternative-syntax by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88145@lists.php.net to get a copy of this message
Note Submitter: hellspire at gmail dot com ---- peter at randomnity dot com, please note that you were careless and forgot to escape the single-quote in your code (for the apostrophe's). echo 'X isn\'t one!'; rather than echo 'X isn't one!'; echo (($x == 1) ? 'X is one!' : 'X isn\'t one!'); rather than echo (($x == 1) ? 'X is one!' : 'X isn't one!'); (of course you could just use double quotes " " instead ;D

« previous php.notes (#88145) next »