Re: is <?= good?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simon J Welsh wrote:
On 12/06/2010, at 8:43 AM, Daevid Vincent wrote:
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; ?>

<?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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux