How to use AND/OR in if else PHP statement -
how shorting codes
if(stristr($a,'erorr email')){ echo 'error login'; } elseif(stristr($a,'erorr password')){ echo 'error login'; }
i want add 'and' if , delete 'elseif' ..
if(stristr($a,'erorr email') || stristr($a,'erorr password')){ echo 'error login'; }
and read link learn more: php operators
Comments
Post a Comment