【发布时间】:2014-03-17 15:12:56
【问题描述】:
如果我必须解析包含可能包含分隔符语法的 cmets 的字符串,我将如何在 PHP 中处理它?
设输入字符串为:
"56.82[This is a comment], 43.78, 62.55[Comment 2, but with delimiter identifiers], 33.21"
我怎样才能解析这个字符串,以便我可以像这样回显这两个部分:
56.82 - This is a comment
43.78
62.55 - Comment 2, but with delimiter identifiers
33.21
【问题讨论】: