note 34546 added to tokens

From: Date: Wed, 30 Jul 2003 15:09:52 +0000
Subject: note 34546 added to tokens
Groups: php.notes 
Request: Send a blank email to php-notes+get-53009@lists.php.net to get a copy of this message
Another way to do the above example, and probably faster, is to use concatenation. I hardly ever use double quotes as they are slower than single quotes, not substantially, but slower nonetheless: <?php // a way to do the above example echo 'foo is ' , $_GET['foo']; ?> In this example I used a comma instead of concatenation, because echo can take any amount of parameters, and using commas instead of concatting in an echo is faster ---- Manual Page -- http://www.php.net/manual/en/tokens.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34546 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34546&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34546&report=yes

« previous php.notes (#53009) next »