Login +

Documentation

SLS_Services_JSON::encode

Since SillySmart 1.0

Description

Encodes an arbitrary variable into JSON format
public mixed encode ( mixed $var);

Parameters

  • mixed $var
    any number, boolean, string, array, or object to be encoded. See argument 1 to Services_JSON() above for array-parsing behavior. If var is a string, note that encode() always expects it to be in ASCII or UTF-8 format!

Return

mixed
JSON string representation of input var or an error if a problem occurs
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.