Michdd Posted June 1, 2009 Share Posted June 1, 2009 What would be faster, using strpos() on a string, or breaking up a string into a array using explode() and using in_array() on that? Quote Link to comment Share on other sites More sharing options...
ldougherty Posted June 1, 2009 Share Posted June 1, 2009 One function vs Two Functions If str_pos will return the value you need why convert to an array? Quote Link to comment Share on other sites More sharing options...
Michdd Posted June 1, 2009 Author Share Posted June 1, 2009 I don't know, probably a stupid question. I was just under the impression that strpos() was somewhat 'slow', however it was something else unnecessary in my code, Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.