PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php echo '<table>'; foreach ($arr as $row) { echo '<tr>'; foreach ($row as $key => $cell) { if ($key === 'salary') { $cell .= ' dollars'; } echo "<td>$cell</td>"; } echo '</tr>'; } echo '</table>'; ?>
Show:  
Copy Clear