#32595 [Opn->WFx]: $str{begin,length} Substring operator?
| From: | derick@php.net | Date: | Tue, 05 Apr 2005 17:44:26 +0000 |
| Subject: | #32595 [Opn->WFx]: $str{begin,length} Substring operator? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76406@lists.php.net to get a copy of this message | ||
ID: 32595
Updated by: derick@php.net
Reported By: sb at stephenbrooks dot org
-Status: Open
+Status: Wont fix
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.3.9
New Comment:
This was discussed already, and not going to happen.
Previous Comments:
------------------------------------------------------------------------
[2005-04-05 19:36:25] sb at stephenbrooks dot org
Description:
------------
Odd, I thought this was actually in PHP5 already, but could find no
mention of it in the documentation. It's not in the PHP4 I have here
anyway.
The feature would work as in the title: $str{begin,length} would work
as substr($str,begin,length). Just a notational convenience, but
struck me as a natural (and useful) extension of the $str{n} operator.
Nonessential :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32595&edit=1