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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

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

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