<?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

相关文章:

  • 1970-01-01
  • 2022-12-23
  • 2021-09-08
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-09
  • 2021-12-10
  • 2022-02-10
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案