1、is_numeric() :检测变量是否为数字或数字字符串
<?php
$v = is_numeric ('58635272821786587286382824657568871098287278276543219876543') ? true : false;
var_dump ($v);
?>
The above script will output:
bool(true)
2、parse_str():
a.把查询字符串解析到变量中
<?php parse_str("name=Bill&age=60"); echo $name."<br>"; echo $age; ?>
Bill
60
b.在数组中存储变量
<?php parse_str("name=Bill&age=60",$myArray); print_r($myArray); ?>
Array ( [name] => Bill [age] => 60 )