PHP basic

Last Updated: Graph.K


1. Insert tab for php section in html

<?php
 echo "This letter was printed by PHP's echo.<br />\n";
 print "This letter was printed by PHP's print.<br />\n";
?>

This letter was printed by PHP's echo.
This letter was printed by PHP's print.

2. Function Call

<?php
function error($number){
	echo $number;
}
error("Call error function with this message.");

?>

Call error function with this message.
Thats all.
hahaha.