[ create a new paste ] login | about

Link: http://codepad.org/Jkbm42pA    [ raw code | output | fork ]

PHP, pasted on Jan 30:
1
2
3
4
5
6
<?php 

$_REQUEST['add-to-cart'] = '8:1';
$product_ids = explode( ',', $_REQUEST['add-to-cart'] );
echo '$product_ids: ';
print_r( $product_ids );


Output:
1
2
3
4
$product_ids: Array
(
    [0] => 8:1
)


Create a new paste based on this one


Comments: