Program to print the sum of the given nth term | function to calculate sum of series ; Sum of n terms is n ^ 2 ; Driver Code
< ? php function summingSeries ( $ n ) { return pow ( $ n , 2 ) ; } $ n = 100 ; echo " The ▁ sum ▁ of ▁ n ▁ term ▁ is : ▁ " , summingSeries ( $ n ) ; ? >