php - __call and __callStatic not working properly or writing incorrectly -
<?php class statics { private static $keyword; public static function __callstatic($name,$args){ self::$keyword = "google"; } public static function tellme(){ echo self::$keyword; } } statics::tellme(); this simple breakdown tried using __construct way write code statics::tellme(); need write new __construct work. , private static variable keyword not written without being called ideas why not working?? ide not working example private static $pathname; public function __construct($dir = "") { set_include_path(dirname($_server["document_root"])); if($dir !== "") { $dir = "/".$dir; } self::$pathname = $dir.".htaccess"; if( file_exists(self::$pathname) ) { self::$htaccess = file_get_contents($dir.".htaccess",true); self::$htaccess_array