PHP Strstr.Php – String Function

<?php
   $url = "sales@example.com";
   echo ltrim(strstr($url, "@"),"@");
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.