【发布时间】:2011-07-31 12:34:31
【问题描述】:
如何将对象类存储到 PHP 会话中,然后在我的下一页中将其作为变量获取。你能帮忙吗?
这是我的 class.inc.php
class shop {
var $shoeType;
var $color;
public function __construct() {
$shoeTypeService = new ShoeTypeService();
$shoe = $shoeTypeService->getAllShoes();
$this->shoeType = $shoe[20];
}
}
【问题讨论】:
-
这个问题已经被问过并得到了全面的回答。看看:stackoverflow.com/questions/871858/…
标签: php