php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #55765 clarify that backticks aren't interpreted within double-quotes
Submitted: 2011-09-23 00:46 UTC Modified: 2011-09-24 19:35 UTC
From: php at richardneill dot org Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php at richardneill dot org
New email:
PHP Version: OS:

 

 [2011-09-23 00:46 UTC] php at richardneill dot org
Description:
------------
On the documentation page: language.operators.execution.php
I think it might be worth adding something similar to the following:

Backticks are NOT interpreted within double quotes.

Unlike the BASH shell, where:
    echo "Hello `whoami`";
will print "Hello [name]"

PHP will simply treat the backticks as literal. i.e. it prints:  
    "Hello `whoami`"

(To use backticks in PHP, do:  echo "Hello ".`whoami`;   )



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-09-24 19:31 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2011-09-24 19:35 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=317253
Log: Fix doc bug #55765 (clarify that backticks aren't interpreted within
        double-quotes).
 [2011-09-24 19:35 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2011-09-24 19:35 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC