note 94190 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:37:24 +0000
Subject: note 94190 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191726@lists.php.net to get a copy of this message
Note Submitter: VladSavitsky ---- To avoid data loss (problem with '\r\n') you can convert string to array and serialize an array. Example: <?php //Store data: $array = explode('\r\n', $string); $serialized = serialize($array); //Restore data: $array = unserialize($serialized); $text = implode('\r\n', $array); ?>

« previous php.notes (#191726) next »