Bug #17518 Updated: split function

From: Date: Thu, 30 May 2002 08:12:26 +0000
Subject: Bug #17518 Updated: split function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8893@lists.php.net to get a copy of this message
ID: 17518 Updated by: jan@php.net Reported By: sano@mail.rit.edu -Status: Open +Status: Duplicate Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.0CVS-2002-05-30 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Because of this, we hope you add your comments to the original bug instead. Thank you for your interest in PHP. this is not likely to happen. Previous Comments: ------------------------------------------------------------------------ [2002-05-30 01:45:57] sano@mail.rit.edu 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 this bug report at http://bugs.php.net/?id=17518&edit=1

« previous php.bugs (#8893) next »