A Php program to the area of a triangle. Using this program we can run the area of triangle in php programming language. Let’s look at how to use the formula to find the area of a triangle. The area formulas for all types of triangles, such as an equilateral triangle’s area, a right-angled triangle’s area, and an isosceles triangle’s area, are listed here. Also, examples of how to use Heron’s formula to find the area of a triangle with three sides.
$base = 5;
$height = 10;
echo "area with base $base and height $height= " . ($base * $height) / 2;
area with base 5 and height 10= 25