json_implode
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | json_implode [2017/07/06 04:08] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ======Synopsis: | ||
| + | [[json_implode]](<< | ||
| + | |||
| + | ======Technical: | ||
| + | This function serialises an assign variable structure into a [[http:// | ||
| + | |||
| + | All sub-structures are stored as JSON sub-objects, | ||
| + | |||
| + | An assign variable structure can be losslessly round-tripped through [[json_implode]] and [[json_explode]], | ||
| + | |||
| + | If the function fails, an empty string is returned. | ||
| + | |||
| + | ======Returns: | ||
| + | |<< | ||
| + | |<< | ||
| + | |||
| + | ======Examples: | ||
| + | |||
| + | @ foo[client] = [EPIC] | ||
| + | @ foo[details][description] = [EPIC rocks!] | ||
| + | @ foo[details][protocol] = [IRC] | ||
| + | @ foo[details][port] = 6667 | ||
| + | | ||
| + | echo $json_implode(foo) | ||
| + | | ||
| + | ======See Also:====== | ||
| + | [[json_error]], | ||
json_implode.txt · Last modified: 2017/07/06 04:08 by 127.0.0.1
