if $arr is a array as in $arr =array('a','b','c');
output should be a combination of various elements
output
'a','b','c','ab','ac','bc','abc' this should be a generic code as in if elements are as array('a','b','c','d','e') mandar
Based on the code given, how are we supposed to know what the output should be? There is no mechanism to output anything in anyway. Explain further please?
here it is
see say i have an array('a','b','c')
i require the code which generates the output as a,b,c,ab,ac,bc,abc
for array('a','b','c','d')
a,b,c,d,ab,ac,ad,bc,bd,cd,abc,abd,bcd,bda,abcd
hope u understand the question
regards mandar