Rabu, 04 April 2012

contoh statement REQUIRE di php:

tutorial1.php

<?php
$a=”selamat datang di rumah kami”;
function tulistebal($teks)
  {
    echo(“<b>$teks</b>”);
  }
?>

File tutorial2.php:

<?php
 require(“contoh1.php”);
 tulistebal(“semoga anda senang!”);
echo(“<br>”);
echo($a);
?>