|
Posted by Hendri Kurniawan on 08/02/07 04:18
On Aug 2, 1:54 pm, Joeseph P. Blow <jpb...@gmail.com> wrote:
> On Thu, 02 Aug 2007 03:48:43 -0000, Yarco <yarc...@gmail.com> top
> posted like an ignorant fucking moron and wrote:
>
> >Yes, it can be done like this.
> >But cause $MONTH_NAMES is variable, someone could change the value.
>
> >// Data.cls.php
> > class Date {
> > public static $MONTH_NAMES = array('January', ...);
> >}
>
> Why make it public?
-- SNIP --
> --
> Just your average Joe
Well, just coz it's emulating class const.
Class const (If I'm not wrong) can be accessed from outside the class.
Nothing more
Hendri Kurniawan
[Back to original message]
|