Returning an array from a function in PHP
Function returning meta tags. Could use database to get the values
function get_meta_tag()
{
$array["title"] = "My Title";
$array["description"] = "My Description";
$array["keywords"] = "Keywords";
return $array;
}
Calling the function
$myArray = get_meta_tag();
Printing returned values
echo $myArray["title"];
echo $myArray["description"];
echo $myArray["Keywords"];