I want to run multipe regex through, however the regex might be empty.
if you try and do:
if (ereg("$test2", $str)) {
etc..
with $test2 as empty you get an error
but if i do:
if ($test2 && ereg("$test2", $str)) {
i dont.
Is this because php gets to $test2, realises it is not true and thus stops so never gets to ereg and never gives the error or is something else going on? if what i say is right just a simple "yes" would help stop me worrying!
Bookmarks