PHP String Strstr ( String Haystack, String Needle ) Finds First Occurrence Of Substring Inside Another String (Parameter One) – String Function

<?
    $string = "http://www.example.com/mypage.php";
    $newstring = strstr($string, "www");
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.