Program to find area of a Trapezoid | Function for the area ; Driver Code
< ? php function Area ( $ b1 , $ b2 , $ h ) { return ( ( $ b1 + $ b2 ) / 2 ) * $ h ; } $ base1 = 8 ; $ base2 = 10 ; $ height = 6 ; $ area = Area ( $ base1 , $ base2 , $ height ) ; echo ( " Area ▁ is : ▁ " ) ; echo ( $ area ) ; ? >