i got the answer:
Here's the code

<?php

$array[$linkname] = $linkurl;
#$myarray["this is some link text"] = "http://www.this-is-some-page.com/";;
$myarray = array ("Link 1" => "link1url", "Link 2" => "link2url", "Link 3"
=> "link3url");
foreach ($myarray as $linkname => $linkurl)
        {
            #echo "<br>linkname = $linkname<br>linkurl = $linkurl\n";
            echo "<a href=\"$linkurl\">[ $linkname ]</a>";
        }
?>
"Sir D" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi
> I'd like to build a multidimensional array that is loaded with Link_URLs
and
> LinkNames.  I wanna be able to output a list of links using the Link_Names
> and they should all be hyperlinks using Link_URLs as the reference.
>
> Can anyone help with some src..
> Thanx
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to