#67. PHP String Search & Find Position Functions
How to work PHP String Search & Find Position Functions?
E.g
Run Code:
<?php
$str = "Hello World. The World is greate";
//echo strpos($str, "The");
echo "String Position :" . strpos($str, "World") . "<br>";
echo "String Rev Position :" . strrpos($str, "World") . "<br>";
echo "String insentive Position :" . stripos($str, "World") . "<br>";
echo "String Rev insentive Position :" . strripos($str, "World") . "<br>";
?>



Comments
Post a Comment