words2number
In number_convert.php
, NumberConvert
class can convert given textual written number to digits.
For example the result of One hundred twenty four thousand three hundred and fifty
is 124350
Test
This class can be test with running index.php
.
In terminal:
php index.php
Output:
7436421863 => success
12345678 => success
9876543210 => success
3698520147 => success
3698520147123 => success
10000000001 => success
10001000001 => success
300400 => success
194387651987436 => success
987569234209872 => success
904060700340201 => success