What is the best practice for updating multiple links across different pages in PHP?

When updating multiple links across different pages in PHP, it is best practice to use a centralized configuration file to store all the links. This way, if a link needs to be updated, it can be done in one place and will reflect across all pages that use that link. This approach helps maintain consistency and makes it easier to manage changes in the future.

// config.php
<?php
$links = [
    'home' => 'https://example.com',
    'about' => 'https://example.com/about',
    'contact' => 'https://example.com/contact',
    // add more links as needed
];
```

```php
// index.php
<?php
include 'config.php';

echo '<a href="' . $links['home'] . '">Home</a>';
echo '<a href="' . $links['about'] . '">About</a>';
echo '<a href="' . $links['contact'] . '">Contact</a>';
// add more links as needed
?>