I would like to know how to make a list of links appear on my page displaying a name but when you click it, it navigates to the link.
I currently know how to make a list and display the items of it using the foreach command and arrays but is there a way I can make it so I have an array, containing an array, containing the name of the link and the link itself, like so:
$links = array(array("Google","//google.co.uk"),array("Bing","//bing.co.uk"))
foreach ($links as $myurl){
foreach ($myurl as $url){
echo "<a href='".$url."'>".$myurl."</a>";
}};
I know the above doesn't work but if anyone can help with this problem, it is much appreciated.