title: echo php tag inside echo returning `Parse error: syntax error, unexpected '?' `
body: <pre><code>echo "&lt;input type=\"hidden\" name=\"eventwhat\" value="&lt;?php echo .$value['searchresultwhat'].;?&gt;"&gt;";
  echo $eventwhat;
  </code></pre>
  
  <p>this is my code where i have an echo where i echo a variable,this variable changes depending on click.however when do it like this i get the error <code>Parse error: syntax error, unexpected '?'</code> i doubt that the solution for this is <code>\\</code> because if i try to do it like this </p>
  
  <pre><code>echo "&lt;input type=\"hidden\" name=\"eventwhat\" value=\"&lt;?php echo .$value['searchresultwhat'].;?&gt;\"&gt;";
  </code></pre>
  
  <p>it turns everything to gray and php i think will not be called.any suggestions is appreciated</p>