Friday, 19 April 2013

PHP Syntax


Basic PHP Syntax.
Every time we want to run the php code should start with <? Php and ends with?>, And php code can tuck anywhere.
PHP syntax file is usually in the skid and in the HTML tag.

EXAMPLE:
<html>
<body>
<? php
echo 'first writing PHP';
?>
</ body>
</ html>

echo is used to print something whether it be writing atu than writing, there are two ways to show the value in the PHP syntax you can menggukan echo or print.

No comments:

Post a Comment