Program for Volume and Surface Area of Cube | utility function ; driver function
< ? php function areaCube ( $ a ) { return ( $ a * $ a * $ a ) ; } function surfaceCube ( $ a ) { return ( 6 * $ a * $ a ) ; } $ a = 5 ; echo ( " Area ▁ = ▁ " ) ; echo ( areaCube ( $ a ) ) ; echo ( " STRNEWLINE " ) ; echo ( " Total ▁ surface ▁ area ▁ = ▁ " ) ; echo ( surfaceCube ( $ a ) ) ; ? >