Thread
:
php 在使用if判断的时候 如果是多个逻辑或(||)条件 有没有简写的方法
View Single Post
#
2
IP: 180.125.23.91
2016-02-28, 05:11 PM
Anoka
初级会员
Join Date: 2010-07-09
Posts: 1
如果if里的判断条件特别特别长(我见过有些分支需要判断三四个变量,||和&&用了七八个),建议把判断条件写成单独的函数
Anoka
View Public Profile
Find all posts by Anoka