* Thus wrote [EMAIL PROTECTED]:
> 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

${'show_links_' . $category}

you'd be better off building a variable $show_links as an array

  $show_links[$category]

Much easier to understand what your doing.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to