【发布时间】:2015-12-08 10:11:34
【问题描述】:
以这些字符串为例:
<?php
$strOne = "Place new content here: , but not past the commma.";
$strTwo = "test content";
?>
那么根据上面的字符串,如何创建一个如下所示的新字符串:
<?php
$finalstr = "Place new content here: test content, but not past the comma.";
?>
编辑
另外,假设我无权访问 $strOne,这意味着我想通过字符串函数而不是直接通过连接等方式修改字符串...
【问题讨论】:
-
你试过了吗?
-
不确定 php 有哪些功能可以做到这一点..
标签: php string variables substring