indirect function call

[email protected] (Burak DAYIOGLU)
Newsgroups php.pear
Message-ID <[email protected]>
Hi,
We are having a little problem with indirect function calls as being
discussed on the list for a while... The below thingie does not work,
does anybody have any idea to make it run?

regards,
-bd

<?php

class bdd
{
        var $bdd_var;
        function bdd_function($input)
        {
                echo "This is bdd_function speaking and the input is :
$input";
        }
}

$foo = new bdd;
$bar = $foo->bdd_function;
$bar("foo bar !");
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.