Ok, if this is a dumb question please forgive me, I am new to PHP (so pleaes be gentle)
Which of these will execute faster:
$search = "Search";
if (preg_match("/.(SEARCHFOR)$/i", $search) {
// Do stuff here
}
... or ...
if (stristr($search, "SEARCHFOR"){
// Do stuff here
}
I do these a lot and want to speed my stuff up...
Thanks,
Ross