ID: 8794
Updated by: stas
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PCRE related
Assigned To:
Comments:
Manual says that the behaviour of preg_grep is exaclty what
it is. You can use each() or foreach() to go through the
array, count() is not sacred in any way (a
ID: 8794
User Update by: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: PCRE related
Description: preg_grep changed behavior by design?
The behavior is inconsistent with expectations and breaks code.
In the example given count() returns 1, so loops attempting to access found eleme
ID: 8794
Updated by: andrei
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PCRE related
Assigned To:
Comments:
Yes, preg_grep() was always supposed to return the results with their original keys
but it wasn't until the behavior was fixed a little while ago.
Previous