php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17518 split function
Submitted: 2002-05-30 01:45 UTC Modified: 2002-05-30 04:12 UTC
From: sano at mail dot rit dot edu Assigned:
Status: Duplicate Package: Feature/Change Request
PHP Version: 4.0CVS-2002-05-30 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sano at mail dot rit dot edu
New email:
PHP Version: OS:

 

 [2002-05-30 01:45 UTC] sano at mail dot rit dot 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-30 04:12 UTC] jan@php.net
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.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 21 22:03:34 2021 UTC