Program to find the Volume of a Triangular Prism | function to find the Volume of triangular prism ; formula to find Volume ; Driver Code ; function calling
< ? php function findVolume ( $ l , $ b , $ h ) { $ volume = ( $ l * $ b * $ h ) / 2 ; return $ volume ; } $ l = 18 ; $ b = 12 ; $ h = 9 ; echo " Volume ▁ of ▁ triangular ▁ prism : ▁ " . findVolume ( $ l , $ b , $ h ) ; ? >