[FX.php List] Passing a direct link

Ben Rollins ben at eldertreks.com
Fri Oct 8 15:17:48 MDT 2004


Hi Gjermund,

Do you prefer switch over if/else constructions for
performance/elegance/other reasons?

Is it only preferred when there's lots of options, more than two?

Cheers,
Ben


Gjermund Gusland Thorsen <ggt667 at gmail.com> writes:
>switch( $_REQUEST['action'] ) {
>case 'reprint':
> //do this stuff
>break;
>
>case 'edit':
> //do this stuff
>break;
>
>case 'cancel':
> //do this stuff
>break;
>}



Ben Rollins
ElderTreks - Exotic Adventures for travelers 50 and over
Toronto, Canada
Tel: 416 588 5000
1 800 741 7956
Fax: 416 588 9839
ben at eldertreks.com
http://www.eldertreks.com



More information about the FX.php_List mailing list