A recursive function to print all increasing sequences of first n natural numbers . Every sequence should be length k . The array arr [ ] is used to store current sequence .
function printSeqUtil ( $ n , $ k , $ len , $ arr ) {