返回與某個特定名稱的過濾器相關聯的id

filter_id

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

filter_id返回與某個特定名稱的過濾器相關聯的id

說明

filter_id(string $filtername): int

參數

filtername

待獲取的過濾器名稱

返回值

如果獲取成功則返回過濾器id,如果過濾器不存在則返回 false

參見

Leave a Reply

Your email address will not be published. Required fields are marked *