Posts Tagged ‘static variable’
How to access Static variables in php
To access Static variables;
-
class mystatic {
-
private static $staticvar;
-
-
public static function staticmethod{
-
return <strong>self::$staticvar</strong>;
-
}
-
}
To access Static variables;
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS)