Created
November 13, 2014 09:52
-
-
Save Kinghack/f6b1434a94bf21a80192 to your computer and use it in GitHub Desktop.
几个判断,应该还是第二种最好吧
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (isset($ad->sourceApp) && $ad->sourceApp != '1' && $ad->sourceApp != '2' ) return; | |
if (isset($ad->sourceApp) && !in_array(intval($ad->sourceApp), [1, 2])) return; | |
if (!(isset($ad->sourceApp) && ($ad->sourceApp == '1' || $ad->sourceApp == '2'))) return; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment