Method 1
<?php
echo "Hello World";
?>
save as hello1.php on your localhost (if you using XAMPP save it on folder xampp/htdocs)
now, you can view your script on your browser http://localhost/hello1.phpMethod 2
<?php
$string = "Hello World";
echo $string;
?>
save as hello2.php on your localhost.
now, check it out in your browser http://localhost/hello2.phpeach method will produce the "Hello World" on browser.
Tidak ada komentar:
Posting Komentar