×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - Is it possible in PHP to preserve the object methods when serializing the object?


PHP - Is it possible in PHP to preserve the object methods when serializing the object?

No, unfortunately this is not possible. That means that whenever you
serialize an object with the PHP function serialize, its methods will be 
lost (and you'll not be able to restore them with unserialize anymore). 
Serializing in PHP could be used only to serialize simple variable of 
type string, integer, double, array and object.

Category: PHP

 
<< Go back