<?php
include_once('filter_class.php');
Filter::addData(array('GET','POST','COOKIE'));
echo Filter::post('phone_var');//get from $_POST filtered by "phone" value of phone_var
echo Filter::get('int_var'); //get from $_GET filtered by "int" value of int_var
/*
How this works:
you send value by post, get or cookie to the server
value name must be in format filterRule_valueName;
after filtration you can get you var by this method
Filter::SendMethod(post,request,get or cookie)('filterRule_valueName');
if var was accepted by filter it return it's value else false.
*/
|