Home  >  Article  >  php教程  >  php string functions strstr, ltrim

php string functions strstr, ltrim

大家讲道理
大家讲道理Original
2016-11-08 14:41:101300browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn