1
这组字符串来自我的xml提要。我想从PROPERTY FEATURES中删除部分:到最后。我非常需要你的帮助。PHP如何从短语中删除特定的字符串/单词?
Semi fitted office for sale in Tower with partition and kichen
PROPERTY FEATURES:
-Basement parking
-Central air conditioning
-Covered parking
应该是...
Semi fitted office for sale in Tower with partition and kichen
感谢。任何帮助将非常感激。
使用['strpos'(http://www.php.net/strpos)得到的'PROPERTY FEATURES'的位置,并使用['substr'] (http://www.php.net/substr)剪切原始字符串。 – h2ooooooo 2014-11-06 06:57:49