I used the search function on this site and googled around, but could not find a definitive answer. If someone can point me in the right direction.
I set the links in the PHP print statement as follows:
print '<a href="'.$linkPath.'index.php" style="color:white">Home</a> | <a href="'.$linkPath.'scripts/login.php" style="color:white">Login</a>'. PHP_EOL;
This works for me, however the code shown is just a brief example, and I have a few more links.
Given the fact that this falls into the category of code redundancy with repetition
style="color:white"
I am looking for another solution.
Is it possible to use a loop in this situation, and if someone could give an example of how I can write it?
How to add a style to my links without explicitly specifying it for each link?