Re: [PHP4BETA] References to functions inside a class?

From: Date: Mon, 05 Jun 2000 07:41:57 +0000
Subject: Re: [PHP4BETA] References to functions inside a class?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-16144@lists.php.net to get a copy of this message
J>> { J>> if($limit) J>> $this->query() = &$this->query_l(); J>> else J>> $this->query() = &$this->query_u(); J>> } J>> } J>> ?> J>> J>> PS: I'll even accept a pointer to discussion saying that it CAN'T be J>> done...I know someone on this list was discussiing this at one pont, but I J>> don't recall the discussion. You can't have reference to function. However, you can do the following: $this->call_query = "query_l"; $this->$call_query($params) i.e., call by variable name. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.version4 (#16144) next »