复制代码 代码如下:
<form action="action.php" method="post">
<input type="text">
<input type="password">
<input type="submit">
复制代码 代码如下:
<?php
extract($_POST);
//相当于$username = $_POST['username'];
//$password = $_POST['password'];
?>
复制代码 代码如下:
<?php
/* 假定 $var_array 是 wddx_deserialize 返回的数组*/
$size = “large”;
$var_array = array(”color” => “blue”,
“size” => “medium”,
“shape” => “sphere”);
extract($var_array, EXTR_PREFIX_SAME, “wddx”);
echo “$color, $size, $shape, $wddx_size/n”;
?>
新闻热点
疑难解答