Posts Tagged ‘static variable’

How to access Static variables in php

To access Static variables;

  1. class mystatic {
  2. private static $staticvar;
  3.  
  4. public static function staticmethod{
  5. return <strong>self::$staticvar</strong>;
  6. }
  7. }

, ,

No Comments



SetPageWidth