I have an associative array in php. I am using a foreach loop and i want to create hyperlinks with the keys and values of my array like so: go to http://www.microsoft.com to visit microsoft.
The hyperlink is the value and microsoft is the key.
Here is my code:
$software=array("microsoft"=>"http://www.microsoft.com",....);
foreach ($software as $key=>$item){
echo "Go to ".<a href=$item></a>"." to visit " ."<b>".$key."</b><br>";
}
What is wrong? Thank you
"`? – putvande Mar 12 '14 at 09:13