basic use of serialize()
Moderator: General Moderators
basic use of serialize()
i just want to ask what is the basic use of serialize() function in php. thanks!
well in the case you asked about before in the other thread
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']);