strstr_strchr.php

来源:互联网 发布:淘宝风云团队怎么联系 编辑:程序博客网 时间:2024/06/11 16:08

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <title> strstr_strchr.php </title>
  <meta charset="UTF-8">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
 </head>

 <body>

<?php
$email = 'zhangsan@hotmail.com   lisi@qq.com';
$domain = strstr($email, '@');
echo $domain;
?>
<hr>
<?php
$email = 'zhangsan@hotmail.com   lisi@qq.com';
$domain = strchr($email, '@');
echo $domain;
?>
 </body>
</html>


@hotmail.com lisi@qq.com


@hotmail.com lisi@qq.com 


0 0
原创粉丝点击