Jump to content

Include document if statement is true function thingy.


ckrudelux

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

Archived

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

×
×
  • Create New...