0

たとえば、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

誰かが私を助けることができます!

4

1 に答える 1

0

これがあなたの要件であるかどうかわからない:

if(strstr($string1,$matching_with_string)){
//your code
}
于 2013-11-06T06:29:00.257 に答える