Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
08-25-2009, 10:43 PM #1
Which is faster strstr or substr?
Hi guys, l was just wondering which of these two would be a quicker, substr or strstr? I've got a function that runs through about 20 different checks similar to the one below and l wanted to know which method would be the most optimized?
if(substr($result, 0, 5 ) != '<span')
08-25-2009, 10:51 PM #2
- Join Date
- Apr 2007
- Thanked 19 Times in 19 Posts