note 34546 deleted from tokens by didou
| From: | didou@php.net | Date: | Wed, 30 Jul 2003 15:25:27 +0000 |
| Subject: | note 34546 deleted from tokens by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-53011@lists.php.net to get a copy of this message | ||
Note Submitter: rhapsodi@phpfreak.com
----
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