public static function parseInt($value) { $value = preg_replace('/[^0-9]/', '', $value); return intval($value); }