title: Insert background color in PHP echo statement
body: <p>I am trying to correctly insert a hex color value equal to a variable, which I have placed inside HTML in an echo statement.  The goal is to change the <code>&lt;div&gt;</code>'s background color to the <code>$hexcolor</code> variable's value.  The <code>$hexcolor</code> variable works fine, outputs colors in a hex format (e.g. #000111), but the echo statement does not change the background color.</p>
  
  <pre><code>$hexcolor = "#$hexconvert";
  echo '&lt;div style=\"background:$hexcolor; height:10px; width:10px;\"&gt;Test&lt;/div&gt;';
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>