What are the best practices for setting fixed widths in HTML tables and handling text wrapping in PHP?

When setting fixed widths in HTML tables and handling text wrapping in PHP, it is important to use CSS to define the width of table columns and set the `word-wrap` property to `break-word` to allow long words to break and wrap onto the next line. This ensures that the content within the table cells is displayed correctly without overflowing or causing layout issues.

echo "<table style='width: 100%;'>";
echo "<tr>";
echo "<th style='width: 100px;'>Header 1</th>";
echo "<th style='width: 200px;'>Header 2</th>";
echo "</tr>";
echo "<tr>";
echo "<td style='word-wrap: break-word;'>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</td>";
echo "<td style='word-wrap: break-word;'>Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</td>";
echo "</tr>";
echo "</table>";