Program to find the surface area of the square pyramid | function to find the surface area ; Driver Code ; surface area of the square pyramid
< ? php function surfaceArea ( $ b , $ s ) { return 2 * $ b * $ s + pow ( $ b , 2 ) ; } $ b = 3 ; $ s = 4 ; echo surfaceArea ( $ b , $ s ) ; ? >