Page 1 of 1

search in strings

Posted: Fri Oct 15, 2004 7:23 am
by mrmille
Hiya

im looking for a php alternative of the asp function inStr
it works like this
if inStr(1, "abc", the_input, 1) > 0 then

In this example im looking for the characters "abc" in the string "the_input".
Is there a similiar function in php?

Hilfe!

Posted: Fri Oct 15, 2004 7:25 am
by twigletmac
[php_man]strpos()[/php_man]

Mac