Serialize/Unserialize

From: Date: Tue, 14 Nov 2000 17:56:06 +0000
Subject: Serialize/Unserialize
Groups: php.general 
Request: Send a blank email to php-general+get-25210@lists.php.net to get a copy of this message
My brain must be mush today. Something this simple I just cannot figure out and I'm beating my head against the wall (under a time crunch no less). Why isn't this working? $host_key = array( "$HOSTNAME" ); $host_key = urlencode( serialize( $host_key )); echo "HostKey: $host_key<br><br>\n"; $host_name = urldecode( unserialize( $host_key )); $host_key has a value but after processing, $host_name is coming up blank... Chris

« previous php.general (#25210) next »