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

php类和对象的有关问题

WBOY
Release: 2016-06-13 12:39:39
Original
903 people have browsed it

php类和对象的问题

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

PHP 对象
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template