Click to See Complete Forum and Search --> : Instr?
|2eM!x
Jul 22nd, 2005, 01:03 AM
Is there an instr() function in php?
visualAd
Jul 22nd, 2005, 01:11 AM
strpos() (http://www.php.net/strpos)
ninjanutz
Jul 22nd, 2005, 01:13 AM
yes but i dont no how to use it
visualAd
Jul 22nd, 2005, 01:17 AM
If you click on my link in the prvious post it will show you how it is used ;)
ninjanutz
Jul 22nd, 2005, 01:22 AM
thanx
|2eM!x
Jul 22nd, 2005, 01:30 AM
Yeah thanks bud..@Ninja, use it like this:
$Str=Strpos('yay','y');
If($Str === False){
echo "Not found"
}Else{
echo "Found"
}
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.