Re: Arrays

From: Date: Sun, 28 Oct 2001 10:55:29 +0000
Subject: Re: Arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72614@lists.php.net to get a copy of this message
On Friday 26 October 2001 10:17, Ashley M. Kirchner wrote: > I'd like to create an array of "available resources", and be able > to check it every time. What I'd like to do is something like; > > $site = array( "section1" => #, "section2" => #, etc.. ) > > where "section*" is a STRING variable and # is an INT (if it's > even possible to do that) > > Once I have this setup properly, I'm going to have a routine that > extracts data from PATH_INFO, namely '$section' and '$page' which > should then be checked against the array: > > - if $section exists in the array [...] http://www.php.net/manual/en/ref.array.php -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Drink wet cement. Get stoned.

« previous php.general (#72614) next »