2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2022-09-14 15:24:07 +02:00
parent 3869354a17
commit 7d5d04a30d

View File

@@ -39,6 +39,8 @@ if (!function_exists('json_encode')) {
/** /**
* Implement json_encode for PHP that does not support it. * Implement json_encode for PHP that does not support it.
* Use json_encode and json_decode in your code ! * Use json_encode and json_decode in your code !
* Note: We can found some special chars into a json string:
* Quotation mark (") = \", Backslash (\) = \\, Slash (/) = \/, Backspace = \b, Form feed = \f, New line =\n, Carriage return =\r, Horizontal tab = \t
* *
* @param mixed $elements PHP Object to json encode * @param mixed $elements PHP Object to json encode
* @return string Json encoded string * @return string Json encoded string