SQL PHP HTML ASP JavaScript articles and free scripts to download
PHP Filter

filter_id

WE can get the filter id of the particular filter in PHP by using filter_id function. We will input the name of the filter and get the associated id of it. The list containing name of filter is available at filter_list page. Here is the syntax.

Int filter_id(filter name)

Here is one example echo filter_id('validate_url'); The output of above line is here
273
We can also display the associated id of all the filters in a single list. Here is the sample code.
$ar=filter_list();
while (list ($key, $val) = each ($ar)) {
echo "$key -> $val : ( ".filter_id($val). " ) <br>";
} 
The output is here
0 -> int : ( 257 ) 
1 -> boolean : ( 258 )
2 -> float : ( 259 )
3 -> validate_regexp : ( 272 )
4 -> validate_url : ( 273 )
5 -> validate_email : ( 274 )
6 -> validate_ip : ( 275 )
7 -> string : ( 513 )
8 -> stripped : ( 513 )
9 -> encoded : ( 514 )
10 -> special_chars : ( 515 )
11 -> full_special_chars : ( 522 )
12 -> unsafe_raw : ( 516 )
13 -> email : ( 517 )
14 -> url : ( 518 )
15 -> number_int : ( 519 )
16 -> number_float : ( 520 )
17 -> magic_quotes : ( 521 )
18 -> callback : ( 1024 )

Be the first to post comment on this article :


Google+
Post Comment This is for short comments only. Use the forum for more discussions.
Name
Email( not to be displayed)Privacy Policy
1+2=This is to prevent automatic submission by spammers. Please enter the result of the sum as asked



HTML . MySQL. PHP. JavaScript. ASP. Photoshop. Articles. FORUM Contact us

©2000-2014 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer