[thelist] php SWITCH vs ELSE IF

Mattias Thorslund mattias at thorslund.us
Mon Apr 24 11:56:17 CDT 2006

Christian Heilmann wrote:
> 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 :-)

More information about the thelist mailing list