PHP Syntax

PHP Syntax

Instructor-svgAl-Mamun Sarkar
Apr 22 , 2020

The following codes show how to write PHP with HTML content on a web page.

 

Code:

<!DOCTYPE html>
<html>
<body>

<h1>A PHP page</h1>

<?php
	echo "Hello World!";

	ECHO "Welcome to PHP!<br>";
	echo "Welcome to PHP!<br>";
	EcHo "Welcome to PHP!<br>";
?>

</body>
</html>

Output:

A PHP page

Hello World!Welcome to PHP!
Welcome to PHP!
Welcome to PHP!

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram