Find the perimeter of a cylinder | Function to calculate perimeter ; Driver Code
< ? php function perimeter ( $ diameter , $ height ) { return 2 * ( $ diameter + $ height ) ; } $ diameter = 5 ; $ height = 10 ; echo ( " Perimeter ▁ = ▁ " ) ; echo ( perimeter ( $ diameter , $ height ) ) ; echo ( " ▁ units " ) ; ? >