php创建类并调用的实例方法 PHP类定义PHP定义类通常语法格式如下:<?phpclassphpClass{var$var1;var$var2="constantstring";function 创建类