Seems rather silly to me. StrPos is very very very fast. Think if you have 100,000 characters. StrPos would take a matter of seconds, your function would take a lot longer.
if(strpos("The best site ever is CodingForums", "CodingForums"))
echo "CodingForums is in this string";