Friday, January 13, 2012

Basic PHP Syntax

A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can be placed anywhere in the document.

Syntax of Basic PHP Syntax


<?php
?>

A PHP file normally contains HTML tags, like an HTML file, and some PHP scripting code.

Basic Example

<html>
<body>

<?php
echo "Welcome to first PHP Programme";
?>

</body>
</html>

Each code line in PHP must end with a semicolon.

No comments:

Post a Comment