Re: php array

From: Date: Tue, 09 Oct 2001 03:01:33 +0000
Subject: Re: php array
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-9868@lists.php.net to get a copy of this message
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" <kodude@hotmail.com> wrote in message news:20011009022537.98222.qmail@pb1.pair.com... > 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 > >

« previous php.windows (#9868) next »