php determines whether the string contains another string

<?php

if(strpos('www.baidu.com','www') !==false){

 echo'include the string';

}else{

       echo'does not contain the string';

}

Guess you like

Origin blog.csdn.net/zy17822307856/article/details/112863134