PHP Using Substring Alternatives – String Function

 
//string strstr ( string haystack, string needle )
//string stristr ( string haystack, string needle ) <?php $url = "www.w3mentor.com"; $domain = strstr ($url, "."); echo $domain;
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.