protected function _filter_digit($value) { /** @noinspection NotOptimalRegularExpressionsInspection */ if (preg_match('#^\\d+$#', $value) === 1) { return $value; } else { return null; } }