| post_filter () | ใช้ เข้า function ที่กำหนด ให้กับ field ที่กำหนด หลังจากการตรวจสอบ rules |
|---|
method:post_filter ( function, field_name_1, field_name_2, ..., field_name_n );
return type:void
content:ใช้ เข้า function ที่กำหนด ให้กับ field ที่กำหนด หลังจากการตรวจสอบ rules
example:$valid = new Validation ( $_POST ); $valid->pre_filter ( "trim", "*" ); $valie->post_filter ( "$this" => "check_room", "room_name" );