<?php
$array1 = array(
1 => "Lorem ipsum w1 lorem ipsum",
2 => "Lorem ipsum w1 lorem ipsum",
3 => "Lorem ipsum w1 lorem w1 ipsum",
4 => "Lorem ipsum w1 lorem ipsum",
5 => "Lorem ipsum w1 lorem ipsum",
);
?>
如何用另一个单词“w2”替换单词“w1”,然后生成一个新数组,如
<?php
$array1 = array(
1 => "Lorem ipsum w2 lorem ipsum",
2 => "Lorem ipsum w2 lorem ipsum",
3 => "Lorem ipsum w2 lorem w2 ipsum",
4 => "Lorem ipsum w2 lorem ipsum",
5 => "Lorem ipsum w2 lorem ipsum",
);
?>