PHP Syntax

  • 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

PHP Syntax

<?php
	//block code
?>

PHP Example

Edit it yourself

<!DOCTYPE html>
<html>
<body>

<?php
echo "This is a my first example";
?>

</body>
</html>