how do the thing?

From: Date: Mon, 12 Nov 2001 05:11:49 +0000
Subject: how do the thing?
Groups: php.general 
Request: Send a blank email to php-general+get-74218@lists.php.net to get a copy of this message
Good time of a day! well... as for me the construction... switch($action) { case ... .......... } ...is not very elegant when number of cases over 40-60 or more and the only thing they must do is start one function (often with the same name). for example: case 'add_user_form': { show_add_user_form(); break; } more interesting is to create txt file with records like: add_user_form>show_add_user_form() add_user_recoder>add_user_recoder() ....... So read "show_add_user_form()" is not a problem but how tell PHP that this is a name of function to start but a simple text string? ... P/S: I know about reading php manual ;-) may be in an hour or two I'll get answer on myself but may be somebody can answer qwicker? ;-) Thancks! Vladimr.

« previous php.general (#74218) next »