I\'m developing a simple web application where in I need to display number a to my users in string format.
Example:
12 - One Two or Twelve -20 - min
for the first option (spell out digits), strtr is your friend
$words = array( '-' => 'minus ', '1' => 'one ', '2' => 'two ', etc.... ); echo strtr(-123, $words);