number -- > Current value of number . x -- > Current digit to be considered k -- > Remaining number of digits
< ? php function printWellOrdered ( $ number , $ x , $ k ) { if ( $ k == 0 ) { echo $ number , " " ; return ; }