php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3457 Function requests
Submitted: 2000-02-11 18:54 UTC Modified: 2001-09-06 16:54 UTC
From: shevek at anarres dot org Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 OS: Linux
Private report: No CVE-ID: None
 [2000-02-11 18:54 UTC] shevek at anarres dot org
Suggestions for functions:

Perl-like 'grep' to return a new array containing all elements for which func() returns true.

Perl-like 'map' to return a new array containing return values of func() for each element. (array_walk is nearly this, I think)

regcomp()-like function which will tell if a user-supplied regexp is valid and if not, why not.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-02-10 14:06 UTC] jimw@php.net
refiled against 4.0.
 [2001-02-10 14:08 UTC] jimw@php.net
whoops, didn't mean to close.
 [2001-09-06 16:54 UTC] sterling@php.net
added (except for regcomp(), but you'll see a warning if eregi is passed an invalid regex).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC