#32595 [NEW]: $str{begin,length} Substring operator?
| From: | sb at stephenbrooks dot org | Date: | Tue, 05 Apr 2005 17:36:25 +0000 |
| Subject: | #32595 [NEW]: $str{begin,length} Substring operator? | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-76405@lists.php.net to get a copy of this message | ||
From: sb at stephenbrooks dot org
Operating system: Linux
PHP version: 4.3.9
PHP Bug Type: Feature/Change Request
Bug description: $str{begin,length} Substring operator?
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 bug report at http://bugs.php.net/?id=32595&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32595&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32595&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32595&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32595&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32595&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32595&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32595&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32595&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32595&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32595&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32595&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32595&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32595&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32595&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32595&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32595&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32595&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32595&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32595&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32595&r=mysqlcfg