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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -