filter_id
Description
Syntax
filter_id( string $name ): int|false
Parameters
name
Name of a filter to get.
Return
Returns the ID of a filter on success or false if filter doesn't exist.
Examples
1 · name
<? $name = "int"; $return = filter_id($name); echo $return; ?>
257
2 · filter_list
<? $filter_list = filter_list(); foreach($filter_list as $name) { $return = filter_id($name); echo "$return: $name\n"; } ?>
257: int 258: boolean 259: float 272: validate_regexp 277: validate_domain 273: validate_url 274: validate_email 275: validate_ip 276: validate_mac 513: string 513: stripped 514: encoded 515: special_chars 522: full_special_chars 516: unsafe_raw 517: email 518: url 519: number_int 520: number_float 523: add_slashes 1024: callback