PHP Online Compiler
Example: PHP program to find the area of a rectangle
C
C++
C#
Java
Python
PHP
main.php
STDIN
Run
<?php // PHP program to find the area of a rectangle $l = 5; $w = 7; $a = NULL; // Calculate area of rectangle $a = $l * $w; echo "\nArea of rectangle = " . $a . " units"; ?>
Output
Clear
ADVERTISEMENTS