I want to run a for loop through an array and create anchor elements for each element in the array, where the key is the text part and the value is the URL.
How can
Like this:
$array = array(
'Google' => 'http://google.com',
'Facebook' => 'http://facebook.com'
);
foreach($array as $title => $url){
echo '' . $title . '';
}