title: Object of class stdClass could not be converted to string
body: <p>I dont know why but I get this error 
  :</p>
  
  <p>Catchable fatal error: Object of class stdClass could not be converted to string </p>
  
  <p>For this code:</p>
  
  <pre><code>$sql = "SELECT * FROM player ORDER BY score DESC LIMIT $begin";
                      $arr = array();
                      while($obj = mysql_fetch_object(mysql_query($sql))) {
                              //$arr[] = $obj;
                              echo $obj;
                      }
  </code></pre>