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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jetbird747 at yahoo dot co dot uk
New email:
PHP Version: OS:

 

 [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: Sun May 19 03:01:33 2024 UTC