I just want to known which one will be fast of strpos()/stripos() or preg_match() functions in php.
preg_match is the slowest of the three. stripos will be slower than strpos, since it will have to do extra work to handle case-insensitive matching.
preg_match
stripos
strpos