Home >Backend Development >PHP Tutorial > php类和对象的有关问题

php类和对象的有关问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:39:39933browse

php类和对象的问题

请问为何不能
 public $mp=new Model("producttype");
这样啊,我在C#里就可以这样的,可以那一个对象但属性的。php里就包错了,为什么啊。

PHP 对象
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn