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.
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