https://gist.github.com/nubs/7c0e78a88e3ca53e28b2

strpos is faster.