Jump to content

[SOLVED] Calling functions from another file


prudens

Recommended Posts

When you include functions.php you are effectively taking everything in functions.php and putting it into the file that included it.

 

From a results point of view, it would be no different to copying and pasting functions.php into the other file. Of course, using an include is much easier.

 

So, calling a function from functions.php is just like calling any other function. This obviously works both ways too. If you defined a variable or function in the page doing the including, then it would be avaliable to the included code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.