How to I can evalutate a string patern before execute it.
Example:
/ I need validate the pattern format before execute the eregi /
if (eregi($pattern,$str)) {
echo "good";
}
Thanks for help or clues !
Use the @ operator to surpress errors.
You might want to look into [man]preg_match/man as well. In that case, returning an integer would mean that there are no errors, while returning false would indicate an error.
ThanK for your help !