Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 136 Bytes
<?php
#bad
if($data == 'a' || $data == 'b' || $data == 'c'){
return true;
}
#good
if(in_array($data,['a','b','c']){
return true;
}
You can’t perform that action at this time.