To access Static variables;
-
class mystatic {
-
private static $staticvar;
-
-
public static function staticmethod{
-
return <strong>self::$staticvar</strong>;
-
}
-
}
To access Static variables;
This entry was posted on Friday, July 3rd, 2009 at 9:06 pm and is filed under OOP, PHP. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS)