PHP function

Strpos function in PHP

The strpos ( ) function in PHP Search the a string in given Text. strpos function return the location of the String in integer value. If string not found it return False other wise return a number.
For example:


<?PHP
$text ="Lahore is  a big city of pakistan";
$city= strpos($text, 'city');
echo $city;
?>

This code return 11 as we see the city start form 11th location.