1
我需要通过比较两个字符串来获取不匹配的字符或单词(即子字符串)。比较两个字符串并返回不匹配的子字符串
对于防爆:
$str1 = 'one {text} three'; // {text} is a keyword to find the position where my substring output is located
$str2 = 'one two three';
//I need to return following output
$output = 'two';
感谢您的回答!但我觉得这是不对的做法,其他答案给出了一些解决方案。 –