how do i search for a word within a string in PHP like the vb function INSTR?
oOBlackOrbOo
Printable View
how do i search for a word within a string in PHP like the vb function INSTR?
oOBlackOrbOo
i need it to return the number of characters to the string i am searching for.. i tried strstr but i dont think it returns the ammount of characters it is.. I need to do that so i can use the substr function to split the string after i find all the places..
oOBlackOrbOo
strpos()Quote:
Originally posted by oOBlackOrbOo
i need it to return the number of characters to the string i am searching for.. i tried strstr but i dont think it returns the ammount of characters it is.. I need to do that so i can use the substr function to split the string after i find all the places..
Notice pattern developing? ;)