private function sanitize($value, $sanitizers) {
		if(is_string($sanitizers) === true)
			return call_user_func($sanitizers, $value);

		if(is_array($sanitizers) === true) {
			$valueFiltered = $value;

			if(count($sanitizers) === 2 && is_callable($sanitizers) === true)
				return call_user_func($sanitizers, $valueFiltered);

			foreach($sanitizers as $f)
				$valueFiltered = call_user_func($f, $valueFiltered);

			return $valueFiltered;
		}

		return $value;
	}
private function sanitize($value, $sanitizers) {
		if(is_string($sanitizers) === true)
			return call_user_func($sanitizers, $value);

		if(is_array($sanitizers) === true) {
			$valueFiltered = $value;

			if(count($sanitizers) === 2 && is_callable($sanitizers) === true)
				return call_user_func($sanitizers, $valueFiltered);

			foreach($sanitizers as $f)
				$valueFiltered = call_user_func($f, $valueFiltered);

			return $valueFiltered;
		}

		return $value;
	}
private function sanitize ( $ value , $ sanitizers ) { if ( is_string ( $ sanitizers ) === true ) return call_user_func ( $ sanitizers , $ value ) ; if ( is_array ( $ sanitizers ) === true ) { $ valueFiltered = $ value ; if ( count ( $ sanitizers ) === 2 && is_callable ( $ sanitizers ) === true ) return call_user_func ( $ sanitizers , $ valueFiltered ) ; foreach ( $ sanitizers as $ f ) $ valueFiltered = call_user_func ( $ f , $ valueFiltered ) ; return $ valueFiltered ; } return $ value ; }
Sanitizes a value with the given functions and callbacks
@param string|int|null $value The value to sanitize
@param string|array $sanitizers The functions to sanitize the string. A simple function as string or a callback
as array or an array with simple functions and callback arrays
@return string|int|null The sanitized value
Sanitizes a value with the given functions and callbacks