Program to find Circumference of a Circle | PHP program to find circumference of circle ; utility function ; Driver Code
< ? php $ PI = 3.1415 ; function circumference ( $ r ) { global $ PI ; $ cir = 2 * $ PI * $ r ; return $ cir ; } $ r = 5 ; echo " Circumference ▁ = ▁ " , circumference ( $ r ) ;