$str="Hello From Other Side ";
$add = rand(20,50);
我如何在特定位置的字符串中的每个宪章之后将数字或宪章添加为(25),并控制位置
结果
He25llo Fr25om Ot26her S25ide
谢谢
$str="Hello From Other Side ";
$add = rand(20,50);
我如何在特定位置的字符串中的每个宪章之后将数字或宪章添加为(25),并控制位置
结果
He25llo Fr25om Ot26her S25ide
谢谢
You can use the
substr()
function!If u want to insert
25
inside$str="Hello From Other Side ";
at the position 2!你能做
结果将是: