Re: is <?= good?
| From: | Robert Cummings | Date: | Sat, 12 Jun 2010 02:44:04 +0000 |
| Subject: | Re: is <?= good? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306070@lists.php.net to get a copy of this message | ||
Simon J Welsh wrote:
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:<?php echo 'The answer is ', $answer; ?> Fixed that for you :) Cheers, Rob. -- E-Mail Disclaimer: Information contained in this message and any attached documents is considered confidential and legally protected. This message is intended solely for the addressee(s). Disclosure, copying, and distribution are prohibited unless authorized.Also, for the love of God, please don't embed a variable into a literal string and use preprocessing. Do it like so: <?php echo 'The answer is '.$answer; ?>If you're doing it like that, you may as well use: <?php echo 'The answer is', $answer; ?>