在我的页面中,我将用户的值传递给url并获取序列化的值。在继续前进之前获得成功确认
$test = unserialize (file_get_contents ("http://www.website.com/?info=$inf"));
$date = $test["dob"];
$id = $test["id"];
if($date != ""){
//do something
} else{
//do something else
}
//continue with the rest
我怎么能肯定的是,$test
值被移动到if语句行之前返回?
请说明您的具体问题或添加额外的细节,突显正是你需要的。正如目前所写,很难确切地说出你在问什么。 – jurgemaister