Strings
wordsToNumber
Convert words to numbers
Strings::wordsToNumber($string)
Example
Convert “one million one hundred thousand one hundred and one” to a number
use \Pbc\Bandolier\Type\Strings
Strings::wordsToNumber("one million one hundred thousand one hundred and one");
// Returns 1100101.0