php - Is strpos the fastest way to search for a string in a large body of text?

jorge973

New Member
\[code\]if (strpos(htmlentities($storage->getMessage($i)),'chocolate')) \[/code\]Hi, I'm using gmail oauth access to find specific text strings in email addresses. Is there a way to find text instances quicker and more efficiently than using strpos in the above code? Should I be using a hash technique?
 
Back
Top