I have the following array which contains arrays of values:
$array = array( array(\'1\', \'2\'), array(\'a\', \'b\', \'c\'), array(\'x\', \'y\'),
probably not the most elegant way, but does the trick (javascript)
var result = []; for(i=0;i