title: php table text align center
body: <p>I want to align text in center under table but i dnt know how to do this
  Here is my code</p>
  
  <pre><code> echo "&lt;td&gt;" . $row['Firstname'] ." ". $row['Lastname'] ."&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['Marks'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['percent'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['Status'] . "&lt;/td&gt;";
  </code></pre>
  
  <p>Kindly help me how to do this.
  i tried this but not working</p>
  
  <pre><code> echo '&lt;td tyle="text-align:center;"&gt;' . $row['enroll'] . '&lt;/td&gt;';
  </code></pre>