PHP Syntax

Author: Al-mamun Sarkar Date: 2020-04-22 10:35:27

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!