php include once inside a function? 1

php include once inside a function?

//yes this works 
  function derp(){include_once(yourfile.php);}

Here is what the above code is Doing:
1. It’s creating a function called derp()
2. It’s including the file yourfile.php
3. It’s calling the function derp()

So, the file yourfile.php is included and executed.

Similar Posts