title: PHP: Variable value is not showing
body: <p>I am putting a html inside the php echo like .</p>
  
  <pre><code>echo '&lt;td onclick="getdesc($descriptn)"&gt;';
  </code></pre>
  
  <p>My problem is onclick is not working i also tried like </p>
  
  <pre><code>echo '&lt;td onclick="getdesc(\'$descriptn\')"&gt;';
  </code></pre>
  
  <p>But in this i am not geting the value of variable $descriptn is directly printing .</p>
  
  <p>Please tell me what is the right way to do this ,</p>