Learning PHP and MySQL

Example 05-08 Using the include function

<?php
include('add.php');
echo  
add(2,  2);
?>

Example 5-9. Using include_once to include a file
<?php 
include_once('add.php'); 
include_once(
'add.php'); 
echo  
add(2,  2);
?>

Posted by on 08/03 at 08:20 AM

Next entry: Example 05-10 Creating an object from the Cat class

Previous entry: Example 05-07 A sample include file called add.php

<< Back to main