Program to find Length of Bridge using Speed and Length of Train | function to calculate the length of bridge ; Assuming the input variables
< ? php function bridge_length ( $ trainLength , $ Speed , $ Time ) { return ( ( $ Time * $ Speed ) - $ trainLength ) ; } $ trainLength = 120 ; $ Speed = 30 ; $ Time = 18 ; echo " Length ▁ of ▁ bridge ▁ = ▁ " . bridge_length ( $ trainLength , $ Speed , $ Time ) . " ▁ meters " ; ? >