Return true for Alpha, Numeric or Combination of both other then return false
App::Utility()->alphaNumeric(Value)
Parameter |
Description |
---|---|
Value |
Value to check |
See bellow example:
$String = 'Lor emre'; // Return false
$String = 'Lor@emre'; // Return false
$String = 'Loremre'; // Return true
$String = 'Loremre123'; // Return true
$return = App::Helper('Validation')->alphaNumeric($String);
pr($return);