Object face of PHP
With PHP 5, the true object-oriented programming can be used. I was reading the book on PHP and started comparing it with Java. Coming from Java, it's very natural for me to compare PHP with Java. When one spends more than 10 years in java technology, it's very natural that every programming has to be done in object oriented fashion. The whole thinking process can only be object-oriented.
I was very happy to note that PHP has tried to follow all the OOP in it's new avataar. Now, it's easy to think and implement OOP in PHP without any hesitation. Except the constructor. I don't know why PHP had to do this. Because in Java, the constructor has the same name as the class name. But in PHP, the constructor is defined as __constructor. This is unique, but nothing very exceptional. This can be forgiven.
Another point is the access scope of methods and variables in PHP. In Java, if you don't define the access of the variable and method, then the default is the package level visbility. Because PHP does not have package concept, hence the default visibility is public. So it would be a good programming practice to not to leave out the access scope definition. Always define the access scope for each variable and method.
I am also a little confused about the static variables. In Java, there is a classloader that can load the static variables and methods without the instantiation of the class. I don't know how it works in PHP because in PHP every php file is running in it's own scope. I would try to clarify more about it as I go along.

