Driver Code
$ arr = array ( 1 , 12 , 2 , 22 , 5 , 30 , 31 , 14 , 17 , 11 ) ; $ n = sizeof ( $ arr ) ; echo " Longest ▁ Increasing ▁ Odd ▁ Even ▁ " . " Subsequence : ▁ " . longOddEvenIncSeq ( $ arr , $ n ) ; ? >