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

javascript - Create websocket without connecting -

how to do line continuation in perl debugger for entering raw multi-line text (EOT)? -

android - Linear layout children not scrolling -