yes i am sure, cause ereg returns a BOOLEAN and if u go...
if (ereg(pattern,variable)) {
echo "This is true";
}
and u can do the opposite for false
if (!ereg(pattern,variable)) {
echo "This is false";
}
so if i check if it returns false I can use it
if ($var) {
echo "$var is blank";
}
is the same as going
if ($var == "") {
echo "$var is blank";
}
or
if (!$var) {
echo "$var is not blank";
}
is the same as
if ($var != "") {
echo "$var is not blank";
}