Re: Combining two variables...

From: Date: Wed, 04 Aug 2004 16:16:19 +0000
Subject: Re: Combining two variables...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-192727@lists.php.net to get a copy of this message
On Wednesday 04 August 2004 11:50, Tristan.Pretty@risk.sungard.com offered up the following tid-bit of information : > I'm trying to create a links page, and I wanna filter by category. > Anyhoo, > What I need to do, is have one block of code that I repeat ad neaseum, > based on each category, so if I adda new category, I don't need to add > new code... > > All good so far. > So I have a variable $show_links but I wanna change that slightly each > time to include the category name.. eg: $show_links_$category > > But PHP gets all confused... > What can I do to enable that? Concatenate? http://us4.php.net/manual/en/language.operators.string.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com

« previous php.general (#192727) next »