How can CSS be used to style font size in a PHP-generated table?

To style font size in a PHP-generated table using CSS, you can apply a class to the table element and then define the font size in your CSS file. This allows for consistent styling across multiple tables generated by PHP.

echo '<table class="styled-table">';
echo '<tr><th>Name</th><th>Age</th></tr>';
echo '<tr><td>John</td><td>25</td></tr>';
echo '<tr><td>Jane</td><td>30</td></tr>';
echo '</table>';
```

CSS:
```css
.styled-table {
  font-size: 16px;
}