#30008 [WFx]: string prepend =. operator would be Very handy!
| From: | k at krisgale dot com | Date: | Tue, 07 Sep 2004 11:01:17 +0000 |
| Subject: | #30008 [WFx]: string prepend =. operator would be Very handy! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-65864@lists.php.net to get a copy of this message | ||
ID: 30008
User updated by: k at krisgale dot com
Reported By: k at krisgale dot com
Status: Wont fix
Bug Type: Feature/Change Request
PHP Version: Irrelevant
New Comment:
[shrug] to me, it was worth asking :)
apologies for not finding a 'feature request' form on the site.
there's an operator such as this in perl?
i was unaware (i skipped perl on my way past jsp and coldfusion).
Previous Comments:
------------------------------------------------------------------------
[2004-09-07 12:57:14] derick@php.net
Not a bug, but a feature request. But something that won't be
implemented as it would be way to confusing (and PHP != Perl).
------------------------------------------------------------------------
[2004-09-07 12:34:46] k at krisgale dot com
Description:
------------
with regard to assignment operators...
there exists the string append operator .=
what would be very handy is a prepend operator =.
i.e.
$a = "a";
$b = "b";
$ab = $b;
$ab =. $a;
echo $ab; // "ab"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30008&edit=1