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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Aug 05 17:00:03 2025 UTC