Home  >  Article  >  Backend Development  >  请教逻辑或(||)操作符可以这样用吗

请教逻辑或(||)操作符可以这样用吗

WBOY
WBOYOriginal
2016-06-13 13:30:141094browse

请问逻辑或(||)操作符可以这样用吗?
请问逻辑或操作符可以这样用吗?
if(!isset($_POST['username'])||!isset($_POST['password'])||!isset($_POST['verify_ps'])||!isset($_POST['email']))

------解决方案--------------------
当然啊.
------解决方案--------------------

PHP code

简化:
if(!isset($_POST['username'],$_POST['password'],$_POST['verify_ps'],$_POST['…… <div class="clear">
                 
              
              
        
            </div>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn