Hi guys, Today we learning php syntax and example so ready now go to definitions
PHP is a server site scripting language and executed on the server
Extension:
PHP default file extension is a `.php`
Now we create new file and add `.php` extension means this is a php file
Syntax:
PHP script starts with <?php and ends with ?>
Now we go to built-in a simple example for php and use `echo` php function
<!DOCTYPE html>
<html>
<body>
<h1>My first PHP page</h1>
<?php
echo "This is a my first example.";
?>
</body>
</html>
Related Post