title: PHP CLASS - Fatal error: Can't use method return value in write context
body: <pre><code>&lt;?php /* my function class */
  class dbFunctions{
  public  $dbHost  = "localhost", 
          $dbLogin = "root",
          $dbPwd   = "",
          $dbName  = "forex",
          $mysqli;
  
  /* Create a new mysqli object with database connection parameters */
  public function __construct(){
      $this-&gt;mysqli = new mysqli($this-&gt;dbHost, $this-&gt;dbLogin, $this-&gt;dbPwd , $this-&gt;dbName);
      if(mysqli_connect_errno()) {
          echo "Connection Failed: " . mysqli_connect_errno();
          exit();
      }
  }
  public function address(){
      if($stmt = $this-&gt;mysqli -&gt; prepare("SELECT `email_content` FROM `content` WHERE `content_name`= ? ")) {
          $content = 'address';
          $stmt -&gt; bind_param("s", $content);
          $stmt -&gt; execute();
          $stmt -&gt; bind_result($result);
          $stmt -&gt; fetch();
          $stmt -&gt; close();
          echo $result;
      }
  }
  }
  $obj = new dbFunctions() ;
  ?&gt;
  
  &lt;!-- MY FOOTER FILE WHERE I CALLED THE FUNCTION--&gt;
       &lt;div id="address"&gt;
          &lt;a href="#" style="color:#fff; text-decoration:none;"&gt; Contact Us:&lt;/a&gt;
          &lt;?php if(!empty($obj-&gt;address())){?&gt;&lt;?php $obj-&gt;address();?&gt;
          &lt;?php }?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>Fatal error: Can't use method return value in write context in C:\wamp\www\forex\includes\footer.html on line 3</p>
  
  <p>Please help me out of this issue..I've searched a lot and have not found any solution.</p>