3 * proto int preg_match_all(string pattern, string subject, array subpatterns [, int flags [, int offset]])
4 * Function is implemented in ext/pcre/php_pcre.c
6 error_reporting(E_ALL
&~E_NOTICE
);
8 * Testing how preg_match_all reacts to being passed the wrong type of input argument
10 echo "*** Testing preg_match_all() : error conditions ***\n";
11 $regex = '/[a-zA-Z]/';
12 $value = new stdclass(); //Object
13 var_dump(preg_match_all($regex, $value, $matches));
15 $input = array(array('this is', 'a subarray'), 'test',);
16 foreach($input as $value) {
17 print "\nArg value is: $value\n";
18 var_dump(preg_match_all($regex, $value, $matches));