PHP Programs

Please click on 1-2 Ads to keep this website's Study Material FREE and regularly Updated.

Program 32: Write a PHP program to calculate area of rectangle.

area_rect.php

<!DOCTYPE html>
<html>
<head>	
	<title>PHP Programs TutorialDuniya.com</title>
</head>
<body>
	<?php
		$width = 10;
		$height = 20;

		$AREA_OF_RECTANGLE = $width * $height;

		echo "<br/>";

		echo "Area of Rectangle  ";
		echo $AREA_OF_RECTANGLE;
	?>
</body>
</html>



If you have any suggestion or found any error in the above program, then do let us know at [email protected] or just comment below.