If you are using PHP 5.3 or above, see Deepu’s answer above.
If not, see http://www.karlrixon.co.uk/writing/convert-numbers-to-words-with-php/
Now using that link you could loop through your array and convert them.
$array = array(5,4,3,2,1,4,3,2);
$new = array();
foreach($array as $key => $value) {
$new[] = onvert_number_to_words($value);
}
print_r($new); // array = ('five','four','three','two','one','four','three','two')
1
solved Converting an array of values to string [closed]