title: Can static function access non-static variables in php?
body: <pre><code>&lt;?php
      class Stat
      {
          public $var1='H';
          public static $staticVar = 'Static var';
  
  
          static function check()
          {
  
              echo $this-&gt;var1;               
              echo "&lt;br /&gt;".self::$staticVar ."&lt;br /&gt;";
              self::$staticVar = 'Changed Static';
              echo self::$staticVar."&lt;br /&gt;";
          }
          function check2()
          {
              Stat::check();
              echo $this-&gt;var1;           
              echo "b";
          }
      }
  
  ?&gt;
  </code></pre>
  
  <p>Can i use it like this</p>
  
  <pre><code>$a = new Stat();
  $a-&gt;check2();
  </code></pre>