<?php$mystring = '激动的我啊';$findme = '激'; $pos = strpos($mystring, $findme); if ($pos === false){ echo '在'.$mystring.'中没有找到'.$findme; } else { echo '找到了'; }?>函数详情:http://www.w3school.com.cn/php/func_string_strpos.asp Read More
posted @ 2012-12-05 09:08 tinyphp Views(10724) Comments(0) Diggs(0) Edit