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

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -