title: Change font colour inside php echo statement depending on variable value
body: <p>I am using PHP to extract data from a MySQL database into a table on a web page.  This works fine but I would like to change the font of some of the output depending on the value of a variable.</p>
  
  <p>The output code looks as follows:</p>
  
  <pre><code>&lt;td&gt;&lt;font face="Arial, Helvetica, sans-serif"&gt;&lt;?php echo $variable; ?&gt;&lt;/font&gt;&lt;/td&gt;
  </code></pre>
  
  <p>I would like to change the font to be red if the value of $variable is less than 0.  Any help would be much appreciated.</p>