Check value in list.
App::Utility()->InList(Value,Options)
Parameter |
Description |
---|---|
Value |
Value to check |
Options |
List in array |
See bellow example:
$email = 'abc';
$arr = array('abc','xyz','pqr');
$return = App::Helper('Validation')->inList($email,$arr);
pr($return);