Req #12779 [Com]: Quote operators
| From: | php at tech dot futurequest dot net | Date: | Fri, 28 Aug 2015 02:22:13 +0000 |
| Subject: | Req #12779 [Com]: Quote operators | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195578@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=12779&edit=1
ID: 12779
Comment by: php at tech dot futurequest dot net
Reported by: NetChains at Yahoo dot com
Summary: Quote operators
Status: Wont fix
Type: Feature/Change Request
Package: *General Issues
PHP Version: 4.0.6
Block user comment: N
Private report: N
New Comment:
Really??? "PHP != Perl"
That is a perfect example of "NIH Syndrome".
It should not matter what language it is from, if what is being requested is useful. I am literally
tired of having to escape quotes in:
echo "...\"bunch\".of.\"HTML\".....";
It also makes visually parsing such lines a royal PITA at times. If anything, this would go a long
ways to promoting better readability of one's source code.
Heredoc and Nowdoc (PHP's alternative solution) can make the code a bit ugly to grok when at 2
or more levels of indention deep.
PHP, of all languages, should have this feature/ability since it is closely tied to outputting HTML
(its original mandate).
echo "</\"rant off\">";
--
Terra
Previous Comments:
------------------------------------------------------------------------
[2010-12-17 12:43:37] jani@php.net
PHP != Perl.
------------------------------------------------------------------------
[2005-04-01 10:26:07] gerhard dot oettl at oesoft dot at
it is not an new alias, it would add new functionality - maybe hard to code but very comfortable for
web-designers.
------------------------------------------------------------------------
[2002-06-17 16:11:19] sniper@php.net
I guess Hartmut made a tiny typo.. :)
------------------------------------------------------------------------
[2002-06-17 14:02:33] hholzgra@php.net
<_sniper_> hartmut: And #12896, NO we don't want another alias..
------------------------------------------------------------------------
[2001-08-15 20:30:04] NetChains at Yahoo dot com
PHP needs quote operators like Perl's q// and qq//. Thanks.
It would be extremely useful not having to escape double quotes while writing forms (because some
variables must be interpolated).
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=12779&edit=1