<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
class Person {
var $name;
protected $id;
private $hidden;
public $username;
}
但为了让大家养成良好的习惯和今后对PHP6的适应,建议使用 public 而不是 var
------解决方案-------------------- 如果你不声明 那么他就是 public
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