PHP program to find sum of the series 1.2 . 3 + 2.3 . 4 + 3.4 . 5 + ...
< ? php function sumofseries ( $ n ) { $ res = 0 ; for ( $ i = 1 ; $ i <= $ n ; $ i ++ ) $ res += ( $ i ) * ( $ i + 1 ) * ( $ i + 2 ) ; return $ res ; }