php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #234 Incorrect description of echoing variable variable value
Submitted: 1998-04-02 11:49 UTC Modified: 1998-04-02 13:21 UTC
From: steve at eyekon dot com Assigned: rasmus (profile)
Status: Closed Package: Documentation problem
PHP Version: 3.0 Release Candidate 3 OS:
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: steve at eyekon dot com
New email:
PHP Version: OS:

 

 [1998-04-02 11:49 UTC] steve at eyekon dot com
In Big Manual, Variable Variable section:

$$a = "world";

change to:

${$a} = "world";

and

echo "$a $$a";

change to:

echo "$a ${$a}";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-04-02 13:21 UTC] rasmus
$$a="world" is fine.  But you are right, the example should be "$a ${$a}"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC