Driver Code
$ radius = 10.0 ; $ angle = 90.0 ; echo ( " Area ▁ of ▁ minor ▁ segment ▁ = ▁ " ) ; echo ( area_of_segment ( $ radius , $ angle ) ) ; echo ( " STRNEWLINE " ) ; echo ( " Area ▁ of ▁ major ▁ segment ▁ = ▁ " ) ; echo ( area_of_segment ( $ radius , ( 360 - $ angle ) ) ) ; ? >