Maximum area of rectangle possible with given perimeter | Function to find max area ; return area ; Driver code
< ? php function maxArea ( $ perimeter ) { $ length = ( int ) ceil ( $ perimeter / 4 ) ; $ breadth = ( int ) floor ( $ perimeter / 4 ) ; return ( $ length * $ breadth ) ; } $ n = 38 ; echo " Maximum ▁ Area ▁ = ▁ " , maxArea ( $ n ) ; ? >