src/eMacros/Runtime/Filter/FilterVar.php
public function execute(array $arguments) {
		if (empty($arguments)) throw new \BadFunctionCallException("FilterVar: No parameters found.");
		if (!isset($arguments[1])) throw new \BadFunctionCallException("FilterVar: No filter has been defined.");
		if (!in_array($arguments[1], filter_list()))
			throw new \InvalidArgumentException(sprintf("FilterVar: '%s' is not a valid filter.", strval($arguments[1])));
		return filter_var($arguments[0], filter_id($arguments[1]));
	}
public function execute(array $arguments) {
		if (empty($arguments)) throw new \BadFunctionCallException("FilterVar: No parameters found.");
		if (!isset($arguments[1])) throw new \BadFunctionCallException("FilterVar: No filter has been defined.");
		if (!in_array($arguments[1], filter_list()))
			throw new \InvalidArgumentException(sprintf("FilterVar: '%s' is not a valid filter.", strval($arguments[1])));
		return filter_var($arguments[0], filter_id($arguments[1]));
	}
Filters a value according to a specified filter
Usage: (var 'yes' 'boolean')
Returns: mixed
(non-PHPdoc)
@see \eMacros\Runtime\GenericFunction::execute()