标签: php
我有一个像这样的字符串:
"? has $? in his pocket"
其中?实例必须使用从此数组['Mark',2.00]中获取的顺序值重新填充。
?
['Mark',2.00]
结果输出为"Mark has $2.00 in his pocket"
"Mark has $2.00 in his pocket"
实现此目标的最佳方法是什么?基于本机和基于现有功能的实现都适合我。