(1) Numeric variables can be processed with the (int) or intval function, example:
$page=(int)$_GET['page'];或
$page=intval($_GET['page']);(2) Numeric variables with decimal points can be processed with the (float) or floatval function. Example:
$money=(float)$money;或
$money=floatval($money);(3) Character type processing:
Without spaces or other special symbols, use
RepPostVar()函数过滤With spaces or other special symbols use:
RepPostVar2()函数过滤To write to the database:
RepPostStr()函数过滤