filter_list() 函數傳回包含所有被支援的篩選器的一個陣列。
filter_list()
註:函數的結果不是過濾器ID,而是過濾器名稱。請使用filter_id() 函數來取得過濾器ID。
<?phpprint_r(filter_list());?>
程式碼的輸出如下所示:
Array ( [0] => int [1] => boolean [2] => float [3] => validate_regexp [4] => validate_url [5] => validate_email [6] => validate_ip [7] => string [8] => stripped [9] => encoded [10] => special_chars [11] => unsafe_raw [12] => email [13] => url [14] => number_int [15] => number_float [16] => magic_quotes [17] => callback )