Q: 1
I used the eregi() function to search a particular string pattern in
a string.
The following coding does give an output , please debug! 🙂
<?php
$str1 = "mow pow";
if(eregi("[[:<:]](a-zA-Z)*ow[[:>:]]", $str1, $match))
{
print("word found ending in 'ow'". $match[1]. "<br />");
}
?>
Q2:
How amny arguments does the ereg() takes? does it take an
array variable as it's third arguement?