php - if statement with multiple or condition -
consider following code
if ( stripos($a,'something1')===0 || stripos($a,'something2')===0 ) { return ''; }
is there performance benefit using in_array
or php stops testing if first condition evaluate true ?
relative question performance.
as here, strpos better. https://stackoverflow.com/a/21070786/4627253
Comments
Post a Comment