Bug #17518: split function
| From: | sano at mail dot rit dot edu | Date: | Thu, 30 May 2002 05:45:57 +0000 |
| Subject: | Bug #17518: split function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-8887@lists.php.net to get a copy of this message | ||
From: sano@mail.rit.edu
Operating system: Windows
PHP version: 4.0CVS-2002-05-30
PHP Bug Type: Feature/Change Request
Bug description: split function
Don't you think that the split function should work if invoked as follows:
print( split( "-", "2001-09-21" )[0] );
The function returns an array, so why shouldn't we be able to directly
access the array indexes without having to assign the array to a variable
then outputting the value?
--
Edit bug report at http://bugs.php.net/?id=17518&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17518&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17518&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17518&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17518&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17518&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17518&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17518&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17518&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17518&r=globals