Answers for "Write a simple php program using include and require function and give appropriate output."

PHP
8

include and require in php

// Include a file, if it can't be found: continue.
<?php
include 'mainfile.php';
?>
  
// Alternatively: Require a file to be imported or quit if it can't be found
<?php
 require 'requiredfile.php';
?>
Posted by: Guest on April-25-2020

Code answers related to "Write a simple php program using include and require function and give appropriate output."

Browse Popular Code Answers by Language