Storing and Retrieving Objects : serialize « Utility Function « PHP






Storing and Retrieving Objects

 
<?
class apple {
  var $flavor="sweet";
}
$app = new apple();
$stored = serialize( $app );
print $stored;
?>
  
  








Related examples in the same category

1.Saving Arrays
2.Saving Objects
3.Serialization