Zend certified PHP/Magento developer

Does PHP have the ability to turn a string such as “thirty-six” BACK to “36”?

This:

$a = new NumberFormatter('en_UK', NumberFormatter::SPELLOUT);
var_dump($a->format('36'));

Outputs:

thirty-six

If I have “thirty-six”, “thirtysix” or “thirty six”, can I turn that back into “36” with the same method somehow?

Note: I’m not talking about manually coding this for English, which I already have done in the past and could do again.