热门 strpos 2016-6-12 作者:小指 分类:php 评论:0 次 热度:1217°C 点赞:0次 strpos获取子字符串在字符串的起始位置,没有则返回false。为了区分0和false,判断时应使用全等。$email='@123'; if (strpos($email,'@') == false) { print 'If @ is at the position 0,I can't judge!'; } if (strpos($emai... 阅读全文 评论