RE: [PHP-WIN] php array

From: Date: Tue, 09 Oct 2001 02:50:11 +0000
Subject: RE: [PHP-WIN] php array
Groups: php.windows 
Request: Send a blank email to php-windows+get-9754@lists.php.net to get a copy of this message
OK. Here's some source. Figure it out for yourself from there. And do me a favor, strip out the specific stuff and post it to phpbuilder, would ya? Thank, John -------------- /******* external links list *******/ //array for out of site links //CASE SENSATIVE - upper case proceeds lower case $arr_outer_links = array( 'Licking County Sheriff' => array( 'url' => 'http://www.lickingcountysheriff.com' , 'desc' => 'A valuable law enforcement information site which includes information ranging from Victim Advocate information to a listing of Sexual Offenders in Licking County.' ), 'The Newark Alliance' => array( 'url' => 'http://www.newarkalliance.com' , 'desc' => 'The Newark Alliance (formerly known as The Newark Downtown Association) is dedicated to preserving the heritage of the past, improving the quality of life in the present, and promoting and encouraging the Downtown area as the Center of the Future.' ), 'Licking County Area Transportation Study' => array( 'url' => 'http://www.lcats.org' , 'desc' => 'LCATS is the forum for cooperative transportation decision-making by the principal elected officials of general purpose local government in Licking County, Ohio. Members of LCATS include the City of Newark, the City of Heath, and Licking County. ' ) ); ksort ($arr_outer_links); //unnecessary while ( list($key, $val) = each($arr_outer_links) ) { echo "<li><A href=\"$val[url]\" target=\"new.Window\">$key</A> - $val[desc]</li>\n<P>&nbsp;</P>\n"; } --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Nullum magnum ingenium sine mixtura dementiae fuit > -----Original Message----- > From: SIR d [mailto:kodude@hotmail.com] > Sent: Monday, October 08, 2001 10:23 PM > To: php-windows@lists.php.net > Subject: [PHP-WIN] php array > > > 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: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#9754) next »