note 92861 deleted from language.oop5.static by danbrown
| From: | danbrown@php.net | Date: | Wed, 12 Aug 2009 16:43:21 +0000 |
| Subject: | note 92861 deleted from language.oop5.static by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159384@lists.php.net to get a copy of this message | ||
Note Submitter: gestioni at gerry dot it (Gerry)
----
Does string expansion takes place for static variables?
<?php
class aStaticClass{
static $aVar='world';
public static function printMe(){
echo( "Hello {self::$aVar}" );
}
}
aStaticClass::printMe();
// Hello {self::}
// PHP Notice: Undefined variable: aVar in ***.php on line 7
?>