查找字符串
任务
$str = 'What is your name?',找一下name所在的位置。
<?php
//查找字符串
$str = 'What is your name?';
$str = strpos($str,'name');
echo $str;
?>
$str = 'What is your name?',找一下name所在的位置。
<?php
//查找字符串
$str = 'What is your name?';
$str = strpos($str,'name');
echo $str;
?>