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
[EMAIL PROTECTED]
""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]