const var, self:: or static::
- From: Simon <bad@xxxxxxxxxxx>
- Date: Wed, 02 May 2012 11:45:12 +0200
If I have something like...
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.