1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| <!DOCTYPE html>
| <html lang="en">
| <head>
| <meta charset="UTF-8">
| <meta name="viewport" content="width=device-width, initial-scale=1.0">
| <title>Products</title>
| </head>
| <body>
| <h1>Products</h1>
| <?php foreach ($products as $product): ?>
| <h2><?= htmlspecialchars($product["name"]) ?></h2>
| <p><?= htmlspecialchars($product["description"]) ?></p>
| <?php endforeach; ?>
| </body>
| </html>
|
|