basic use of serialize()
Posted: Thu Dec 14, 2006 10:19 pm
i just want to ask what is the basic use of serialize() function in php. thanks!
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
where can i use this function in my php code?
Code: Select all
<input type="checkbox" name="somecheck[]" value="1">
<input type="checkbox" name="somecheck[]" value="2">
<input type="checkbox" name="somecheck[]" value="3">
<input type="checkbox" name="somecheck[]" value="4">Code: Select all
if(isset($_POST['somecheck']))
$somestring = serialize($_POST['somecheck']);