Hi,

Normally we use preg_match() to search the given string, and it returns 1 or 0.

while using it to search for array values,
for eg,
$arr = array();
$tt = preg_match("[0-9]", $arr);

it shows warning as,

Warning: preg_match() expects parameter 2 to be string, array given in e:\test.php on line 27.
How to check for array values?????