E
E
Evgeny Spiridonov2012-01-30 14:22:49
PHP
Evgeny Spiridonov, 2012-01-30 14:22:49

Autoload functions in PHP?

With autoloading classes/interfaces/objects in php, everything is already more or less digestible. I thought about the task of a similar mechanism for autoloading functions (libraries) in php, Google and Yandex did not offer anything interesting on the topic, maybe someone here has solutions or at least ideas on this issue?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Anatoly, 2012-01-30
@taliban

The solution is to throw them into a specific folder and download them in advance. There are no autoload functions in PHP.

C
CKOPOBAPKuH, 2012-01-30
@CKOPOBAPKuH

there is no solution, but this issue is being discussed by the developers. write a letter to the mailing list in support of this feature so that it is included in the language.
wiki.php.net/rfc/autofunc

@
@ngreduce, 2012-01-30
_

Only crutches come to mind.
Well, or make functions static methods of the class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question