Re: With all this talk about editors ...

From: Date: Mon, 19 Mar 2001 14:45:47 +0000
Subject: Re: With all this talk about editors ...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44581@lists.php.net to get a copy of this message
what if you have three headers depending on what colors a user likes. this favorite color is stored in a session variable $fav_color = 'blue_header'; <?php function blue_header() { } function red_header() { } function green_header() { } include_once('session.egn'); call_user_func($fav_color); ?> there are obviously easier ways todo this, but its a simple example. -- Chris Lee lee@mediawaveonline.com ""Boget, Chris"" <Chris.Boget@wild.net> wrote in message news:4040BBE81A9AD411BD27009027887A7C042B75@tiger.wild.net... > http://www.php.net/manual/en/ref.funchand.php > This page must be your friends. I took a look at this page (and all the functions referenced therein). While there must be a use for these functions otherwise they wouldn't have been included in PHP, I'm at a total loss as to why anyone would ever use them. Why wouldn't you just call the function (or do whatever) yourself? Could anyone offer some insight? Chris

« previous php.general (#44581) next »