[ create a new paste ] login | about

Link: http://codepad.org/VIacFmoM    [ raw code | output | fork ]

PHP, pasted on Oct 20:
1
2
3
4
5
6
7
8
9
10
<?php

$replacements = array('A', 'one', 'some');
$the=array('the','the','the');
$str = "The quick brown fox jumps over the lazy dog and runs to the forest.";
$str=str_ireplace($the, $replacements, $str);

echo $str;

?>


Output:
1
A quick brown fox jumps over A lazy dog and runs to A forest.


Create a new paste based on this one


Comments: