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

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - On Gitbash - Bower : ENOGIT git is not installed or not in the PATH -