我有这个数组:
$GivenString = array("world", "earth", "extraordinary world");
如何获得这样的“不匹配”变量字符串:
$string = 'hello, world'; // output = 'hello, '
$string = 'down to earth'; // output = 'down to '
$string = 'earthquake'; // output = ''
$string = 'perfect world'; // output = 'perfect '
$string = 'I love this extraordinary world'; // output = 'I love this '
谢谢!