Re: undefined class constant (function)
| From: | Christoph M. Becker | Date: | Tue, 20 Mar 2018 22:18:27 +0000 |
| Subject: | Re: undefined class constant (function) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-326396@lists.php.net to get a copy of this message | ||
On 20.03.2018 at 06:41, Jeffry Killen:
> I thought that this might work like javascript (I know javascript is a different language
> but is mostly translatable to php). In js a function can be assigned to a variable and
> called via the variable at a later time.
That is possible in PHP as well, but you have to pass a valid callable,
see <http://www.php.net/manual/en/language.types.callable.php>
for details.
--
Christoph M. Becker