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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -