this simple function searches a string for any numberical numbers and changes them into numerical words for example 1 into one

i needed something like this on one of my codes and it works

so hopefully you can use it

all i ask is that

function WriteNumbers($text){
$Numbers = array('zero ','one ','two ','three ','four ','five ','six ','seven ','eight ','nine ');
	$Len = 10;
	for($i=0; $i<= $Len; $i++) {				
		$text = str_replace($i,$Numbers[$i],$text);
	return $text;