说明 在使用来自HTML表单信息之前,一般都会对这些数据做一些整理
<?php
//清理字符串中开始和结束位置的多余空格
$name "    12356789    ";
$name trim($name);
echo 
$name;
?>
输出结果 12356789