PHP Syntax

Advertisements

How to Install PHP PHP First Code

Basic Syntax of PHP

You can run php code on any web browser. PHP script is executed on the server, and the plain HTML result is sent back to the browser.

Basic Syntax of PHP

  • PHP code is start with <?php and ends with ?>
  • Every PHP statements end with a semicolon (;).
  • PHP code save with .php extension.
  • PHP contain some HTML tag and PHP code.
  • You can place PHP code any where in your document.

PHP Syntax

<?php
// PHP code goes here
?>

PHP files save with .php extension and it contain some HTML and PHP code.

PHP Syntax

<!DOCTYPE html>
<html>
<body>

<h1>This is my first PHP code</h1>

<?php
echo "Hello World!";
?>

</body>
</html>

Output

	
This is my first PHP code

How to Install PHP PHP First Code

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements