Readonly variables in Php

  One of the coolest thing in php5 stuff is overloading. You can control access to your variable via __call, __get and __set methods. You may also make your variables readonly to other classes as shown below :   You may use your variables in $variables array as if they are normal data members in…