It's just a suggestion to have a syntax like this in PHP5!
A property is similar to a field (a member variable), with the exception
that there is a getter and a setter
method, as follows :
public class Car
{
private string make;
public string Make
{
get { return make; }
set { make = value; }
}
}
Car c = new Car( );
c.Make = "Acura"; // use setter
String s = c.Make; // use getter
above example is a simple C# example in NET Framework Essentials.
Masoud
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php