Program to calculate volume of Octahedron | utility Function ; Driver Function
< ? php function vol_of_octahedron ( $ side ) { return ( ( $ side * $ side * $ side ) * ( sqrt ( 2 ) / 3 ) ) ; } $ side = 3 ; echo ( " Volume ▁ of ▁ octahedron ▁ = " ) ; echo ( vol_of_octahedron ( $ side ) ) ; ? >