开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜