<?php
$startString = "3, 2, 1, go!";
$startString = str_replace('1', 'one', $startString);
$startString = str_replace('2', 'two', $startString);
$startString = str_replace('3', 'three', $startString);
//startString = "three, two, one, go!"
echo $startString, "\n";
//replace all
$oneString = "1 1 1";
$oneString = str_replace('1', 'one', $oneString);
//oneString is "one one one"
echo $oneString;