Jump to content

Include document if statement is true function thingy.


Recommended Posts

I'm making a function which should include a file to the document.EXAMPLE:This:

function addingfiles($dir){if(4+10 == 14){	include $dir."/file.php";}}

instead of this:

if(4+10 == 14){	include "folder1/file.php";}

Will this work or will this just add some code to the function?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...