class A
{
public $name = "host";
public $id = "2";
};
$b = array("green","red");
$p = new A;
print_r($p);
print_r($b);
php对象和数组的定义
最新推荐文章于 2024-07-07 09:16:59 发布
class A
{
public $name = "host";
public $id = "2";
};
$b = array("green","red");
$p = new A;
print_r($p);
print_r($b);