alphaNumeric

Navigation:  Development > Function Reference > Helpers > Validation >

alphaNumeric

Previous pageReturn to chapter overviewNext page

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);