Variable interpolation in strings with ${...} (doc bug 53614)
| From: | Ford, Mike | Date: | Tue, 14 Jun 2011 10:49:22 +0000 |
| Subject: | Variable interpolation in strings with ${...} (doc bug 53614) | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969382800@lists.php.net to get a copy of this message | ||
Looking to fix a doc bug report or two this morning, I came
across http://bugs.php.net/53614 referring to the ${...}
interpolation syntax. I recall when I first started with PHP,
this pretty much had equal status with {$...}, but has fallen
away in the documentation to the extent that there's now only
a single isolated example of it, with no descriptive text at
all. I was really surprised at how low this syntax has fallen,
with even one @php.net responder being surprised that it worked
at all.
So:
- AFAIR, this usage has not been deprecated - is that correct?
- If not, should the manual make more prominent mention of it?
- ... and if so how? A passing mention? A few examples? Or
given full equality?
- Or should even the one mention be removed and the whole thing
just quietly dropped?
I think, given the current situation, I'd be inclined to just
drop the one passing example and have done with it, but I don't
think I have the right to make such a decision unilaterally.
However, I'm more than happy to implement whatever the consensus
decides.
Cheers!
Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507 City Campus,
Portland Way, LEEDS, LS1 3HE, United Kingdom
E: m.ford@leedsmet.ac.uk T: +44 113 812 4730
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm