Possible Duplicate:
Is there an easy way to convert a number to a word in PHP?
Recently I needed to change a number to string just like below in php
$str=100;
{ Here will be the code which will return One Hundred not 100}
so $str=150 then will return one hundred fifty
How can I do it. How can I change the number to text in php (NB: number will be random) please help me