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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -