Storing and Retrieving Objects : serialize « Utility Function « PHP
- PHP
- Utility Function
- serialize
Storing and Retrieving Objects
<?
class apple {
var $flavor="sweet";
}
$app = new apple();
$stored = serialize( $app );
print $stored;
?>
Related examples in the same category