Is there an instr() function in php?
strpos()
PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2 | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am. Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!! Spread happiness and joy. Rate good posts.
yes but i dont no how to use it
If you click on my link in the prvious post it will show you how it is used
thanx
Yeah thanks bud..@Ninja, use it like this: PHP Code: $Str=Strpos('yay','y'); If($Str === False){ echo "Not found" }Else{ echo "Found" }
$Str=Strpos('yay','y'); If($Str === False){ echo "Not found" }Else{ echo "Found" }
Forum Rules