Example #1
0
 /**
  * Filter a value with PHP filter_var
  *
  * @param string            $value      Variable name
  * @param int|string        $filter     Filter name or filter_id
  * @param array|int|string  $options    Filter options or flag
  * @return mixed
  */
 function _filter($value, $filter = '', $options = null)
 {
     $value = FilterManager::filter($value, $filter, $options);
     return $value;
 }