Mailinglisten-Archive |
Daniel Beulshausen wrote: > wie ist der outout des folgenden script's zu erklären? > > <? > class foo > { > var $foo = "bar"; > } > > $foo = new foo; > > $wddx_packet = wddx_serialize_vars("foo"); > > print > serialize($foo)."<br><br>".htmlspecialchars($wddx_packet)."<br><br>"; > > unset($foo); > $foo = wddx_deserialize($wddx_packet); > > print serialize($foo); > ?> http://www.php.net/manual/function.wddx-deserialize.php, "wddx_deserialized() takes a packet string and deserializes it. It returns the result which can be string, number, or array. Note that structures are deserialized into associative arrays." Ja, etwas gewöhnungsbedürftig. Ulf
php::bar PHP Wiki - Listenarchive