PHP program to find maximum sum increasing subsequence till i - th index and including k - th index .
< ? php function pre_compute ( & $ a , $ n , $ index , $ k ) { $ dp = array_fill ( 0 , $ n , array_fill ( 0 , $ n , NULL ) ) ;