php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #21857 Perl-like delimeter needed
Submitted: 2003-01-24 00:56 UTC Modified: 2003-01-24 02:00 UTC
From: jetbird747 at yahoo dot co dot uk Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.0 OS: Linux 2.4x
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-01-24 00:56 UTC] jetbird747 at yahoo dot co dot uk
it would be nice to do something like this;


echo(qq~This make it real "easy" to output HTML~);

vs

echo("This makes it a real \"pain\" to output HTML");

This is a feature in Perl where it could be qq! ! or any other symbol after the qq is used as a delimeter.

thanks,

jeff

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-24 01:25 UTC] gschlossnagle@php.net
Obscure syntax has never been well-embraced by php.

besides, in this example you can just

?>This make it really really "easy" to output HTML <?php

 [2003-01-24 02:00 UTC] philip@php.net
Or 'single "quotes"' or <<<HEREDOC
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 04:01:31 2024 UTC