The require() function is identical to include() except that is handle error differently.
The the function include() generates a warning(but the script continue execution) while the require() function generates a fatal error (and script stop)
Syntax
include "function name";
Example
vars.php
The the function include() generates a warning(but the script continue execution) while the require() function generates a fatal error (and script stop)
Syntax
include "function name";
Example
vars.php
<?php $color='red'; $fruit='apple'; echo $fruit."color is".$color" ?> |
0 comments:
Post a Comment