HTML embedded PHP

Although the above simple script will work, PHP is more commonly embedded within HTML code:

 

<html>
	<head>
		<title>Hello World</title>
	</head>
	<body>
		<?php echo("Hello, World! \n"); ?>
	</body>
</html>

Leave a Reply