product options are like
color,size,quantity,printing method,stock etc.now admin has the facility to add multi product options against each product.
after that admin will add the values for each option as product variants.these variants make all possible combinations and make a list.against each combination we give price seperately.
now on client side the all product options are displayed on detail page and user can change the product options values(variants) and change the price by making the combination.
some one please tell me how i can write a code in simple php to make all possible combinations or product variants.