serialize value in array
I am trying to post serialize value to an array, is it possib开发者_Python百科le.. check following...
$product = serialize($_POST['product']);
$values = array('name'=>$_POST['name'], 'product'=>$product);
print_r($values);
please let me know your suggestion to achieve this. thanks.
i solved the problem, i have used '' instead of "" for serialized data and it worked. thanks.
精彩评论