Update class.php

added numbersOnly($string) function.