title: Is it different between two way to call a function in an other class?
body: <p>I have a class</p>
  
  <pre><code>&lt;?php
  class Test{
      public function printword($word){
           echo $word;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>And in another class, i call it.</p>
  
  <pre><code>&lt;?php
  //Included needed files !!!
  $w = 'Hello';
  
  //Way 1
  $a = new Test;
  $result = $a-&gt;printword($w);
  
  //Way 2
  $result = Test::printword($w);
  ?&gt;
  </code></pre>
  
  <p>Is it different ?</p>
  
  <p>And 
  <code>$a = new Test;</code> or <code>$a = new Test();</code> is right ?</p>