title: PHP Object of class stdClass could not be converted to string
body: <p>I have made a small multiplication function </p>
  
  <pre><code> &lt;p&gt;&lt;?php
   $a= "&lt;?php echo $this-&gt;prodDet-&gt;v_price?&gt;";
   $b=.26;
   $c=$a*$b;
   echo $c;
   ?&gt;
  </code></pre>
  
  <p>Here the price value is extracted from database of the requiste product and is multiple by fixed .26 variable. Wondering why am getting this errror - </p>
  
  <pre><code>Catchable fatal error: Object of class stdClass could not be converted to string in
  </code></pre>
  
  <p>I am learning the basics of PHP. can someone suggest how to get it solved please?</p>
  
  <p>Thanks</p>