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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 18:01:29 2024 UTC