private static function encodeDictionary($dictionary, &$serialized)
    {
        if (empty($dictionary)) {
            $serialized .= "de";
            return;
        }

        $serialized .= "d";
        foreach(self::sortDictionary($dictionary) as $key => $value) {
            self::encodeString($key, $serialized);
            self::decideEncode($value, $serialized);
        }
        $serialized .= "e";
    }
private static function encodeDictionary($dictionary, &$serialized)
    {
        if (empty($dictionary)) {
            $serialized .= "de";
            return;
        }

        $serialized .= "d";
        foreach(self::sortDictionary($dictionary) as $key => $value) {
            self::encodeString($key, $serialized);
            self::decideEncode($value, $serialized);
        }
        $serialized .= "e";
    }
private static function encodeDictionary ( $ dictionary , & $ serialized ) { if ( empty ( $ dictionary ) ) { $ serialized .= "de" ; return ; } $ serialized .= "d" ; foreach ( self :: sortDictionary ( $ dictionary ) as $ key => $ value ) { self :: encodeString ( $ key , $ serialized ) ; self :: decideEncode ( $ value , $ serialized ) ; } $ serialized .= "e" ; }
Handles the serialization of a named array object.

@param string $list Named array to serialize.
@param string $serialized Reference to the serialization buffer.
Handles the serialization of a named array object .