Mega Code Archive

 
Categories / Php / Functions
 

Using include_once to include a file

A sample include file called add.php <?php function add( $x, $y ){   return $x + $y; } ?> <?php include_once('add.php'); include_once('add.php'); echo add(2, 2); ?>