Use of "var" in PHP4 OOP
- From: howachen@xxxxxxxxx
- Date: 30 Jan 2006 22:46:56 -0800
hello,
What is the use of "var" in a class?
e.g.
-------------------------------------------------------------------------------
class People{
//var $name ;
function People() {
$this->name = "Tom";
$this->print_name();
}
function print_name() {
print $this->name;
}
}
$a = new People();
-------------------------------------------------------------------------------
even i commented out, //var $name, the code make no difference....
.
- Follow-Ups:
- Re: Use of "var" in PHP4 OOP
- From: phpGuru
- Re: Use of "var" in PHP4 OOP
- Prev by Date: ActiveRecord implementation by PHP
- Next by Date: Re: Use of "var" in PHP4 OOP
- Previous by thread: ActiveRecord implementation by PHP
- Next by thread: Re: Use of "var" in PHP4 OOP
- Index(es):