[thelist] php SWITCH vs ELSE IF

Christian Heilmann codepo8 at gmail.com
Mon Apr 24 14:15:06 CDT 2006


> > I'd store the navigation items in an array and use
> >
> > echo $misc[get_page_type()];
> >
> > :-)
> >
>
> Well, that might be the best solution to the problem that the OP was
> actually trying to solve. But not an answer to the question that was asked.
>
> Reading between the lines -- you ought to charge extra for that :-)

I just hate bloated code. :-)


--
Chris Heilmann
Blog: http://www.wait-till-i.com
Writing: http://icant.co.uk/
Binaries: http://www.onlinetools.org/



More information about the thelist mailing list