How to call the function of another file without including this file

I have one class assuming A and another class B in two different files A.php and B.php respectively.

How can I call a class A function in a B.php file without including the A.php file in B.php.

Is it possible to use a static function?

I saw one application in which they do not include a file and do not expand, but use a different file class function.

we can use a static property for what I tried, but not working on an idea.

they also do not use the autoload function

https://docs.google.com/a/artifex-online.com/file/d/0B6ta7daai0cYeEs0TEJ4OGRacVU/edit?usp=sharing

please read these files.

see the database class used in the user class.

+1
source share
2

. , , .

, , . .

php.net: http://php.net/autoload

, php.net , .


auto_prepend_file - . .

+2

. IDE , , .

, include()/include_once() require_once().

PHP 5+ , autoload(), , , , include() require() , .

0

All Articles