const var, self:: or static::
- From: Simon <bad@xxxxxxxxxxx>
- Date: Wed, 02 May 2012 11:45:12 +0200
If I have something like...
//
class MyClass
{
const MY_CONST = 10;
...
}
//
Inside the class, is it 'better' to use self::MY_CONST or static::MY_CONST?
I say 'better' because it works in both cases.
Or is it just a personal choice.
Thanks
Simon
.
- Follow-Ups:
- Re: const var, self:: or static::
- From: M. Strobel
- Re: const var, self:: or static::
- From: Jerry Stuckle
- Re: const var, self:: or static::
- Prev by Date: Re: installing PHP zip onto a solaris system
- Next by Date: Re: const var, self:: or static::
- Previous by thread: Re: installing PHP zip onto a solaris system
- Next by thread: Re: const var, self:: or static::
- Index(es):