search in strings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mrmille
Forum Newbie
Posts: 3
Joined: Fri Oct 15, 2004 6:17 am
Location: Linköping, Sweden
Contact:

search in strings

Post 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!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

[php_man]strpos()[/php_man]

Mac
Post Reply