note 39981 added to tutorial.useful
| From: | mark at txfx dot net | Date: | Tue, 17 Feb 2004 15:37:36 +0000 |
| Subject: | note 39981 added to tutorial.useful | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65307@lists.php.net to get a copy of this message | ||
Not only is it intuitive (does what you think it should), jumping out of PHP, rather than using an
echo, is apparently faster! Forget about escaping naughty characters ad nauseum, just escape that
PHP.
<?php
echo 'This isn\'t very easy, and a \'parse\' error isn\'t all that
uncommon.';
?>
This is MUCH easier. ''' """ """ ''' Eat
that, PHP!
<?php
echo 'I\'m sorry PHP, I didn\'t mean what I said.';
?>
----
Manual Page -- http://www.php.net/manual/en/tutorial.useful.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39981
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39981&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39981&report=yes
Search -- http://master.php.net/manage/user-notes.php