ID: 15329 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Feature/Change Request Operating System: N/A PHP Version: 4.1.1 New Comment:
Already supported by {} and substr. Derick Previous Comments: ------------------------------------------------------------------------ [2002-02-01 13:48:17] [EMAIL PROTECTED] The now very old North Star BASIC had a wonderful feature that I'd love to see in PHP, which was the ability to access strings using subscripts, rather like subscripting into an array, except even better since it allowed ranges to be subscripted just as easily as single characters in the strings. Examples: $string = "My String"; echo $string[5]; // returns "r" echo $string[0,]; // returns "My String" echo $string[3,5]; // returns "Str" echo $string[,3]; // returns "My S" ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15329&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]