The question may have been unclear, but it requires a bit of explaining, so here goes:
I have 2 arrays: $friendsarr
and $friendunamearr
. $friendarr
holds the ID's of the users on the user's friends list, and $friendunamearr
holds their username. I've already echoed their usernames using the following code:
$funameimp = implode('<br />', $friendunamearr);
echo($funameimp);
But I want to turn these into links. For example:
echo('<a href="../../profile?id=' . $somebodysID . '>' . $funameimp . '</a>');
I heard something about "foreach," but I have no idea what to do.
All help is appreciated.