From:             [EMAIL PROTECTED]
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

Reply via email to