title: How to get return value in php class function
body: <p>In my test. I have defined a class which has getLastTradeTime function </p>
  
  <p>Here is class code:</p>
  
  <pre><code>&lt;?php
  namespace model;
  
  //class Trade {//works fine
  class Trade Extends \Mysql\Crud {// works fail
  protected $table = 'ms_trade';
  protected $pk    = 'id';
  private $hh;// hh is not related to class /Crud
  
   public function getLastTradeTime($uid, $ip) {
      $this-&gt;hh="stringtest";
      return $this-&gt;hh;
  }
  }
  </code></pre>
  
  <p>Now I want to call this class function, I should get "stringtest" return.</p>
  
  <p>But It is unlucky, there is nothing i have got.</p>
  
  <p>Here is html code:</p>
  
  <pre><code>&lt;body style="height:100%" &gt;
  
  &lt;?php 
  include "o1ws1v/class/model/Trade.php";
  $trade_model = new \model\Trade();
  
  $lastTrade_time = $trade_model-&gt;getLastTradeTime("654651","127.0.0.1");
  echo $lastTrade_time;
  ?&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>I mean it is simply class, and normal way to call function. It seems nothing wrong</p>
  
  <p>Who can give me a favor</p>