Without using include_once or any include / require, how can I refer to functions declared in other php files in the current directory? Just like we use fopen.
Including the contents of php files containing non-function code can be a mess. It would be better if using a function is automatically associated with its definition.
I also checked How to include () all PHP files from a directory? which requires some code for this.
I can’t find an answer about this anywhere on the Internet, possibly because of too general search queries for this problem.
source
share