Method encode_value_canonic()
- Method encode_value_canonic
string
encode_value_canonic(mixed
value
,object
|void
codec
)- Description
Code a value into a string on canonical form.
Takes a value and converts it to a string on canonical form, much like encode_value(). The canonical form means that if an identical value is encoded, it will produce exactly the same string again, even if it's done at a later time and/or in another Pike process. The produced string is compatible with decode_value().
- Note
Note that this function is more restrictive than encode_value() with respect to the types of values it can encode. It will throw an error if it can't encode to a canonical form.
- See also