我需要匹配2个字符串并在匹配字符串后添加换行符,例如
$string1="<p>he adventures of adolescence had taught Piet Barol that he</p>";
$matching_with_string="he adventures
of adolescence had
taught Piet Barol
that he";
我需要字符串1输出与字符串
相同是的,有人可以帮助我!$ matching_with_string
答案 0 :(得分:0)
不确定这是否是您的要求:
if(strstr($string1,$matching_with_string)){
//your code
}