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
From: [EMAIL PROTECTED]
Operating system: GNU/Linux
PHP version: 4.0.4pl1
PHP Bug Type: PCRE related
Bug description: preg_grep changed behavior by design?
";
}
# This works as expected, [0] is result, [1] is whatever.
$b = preg_grep( "/^foo/", $a );
echo "try to find foo a