Functions for JSON support in PHP < 5.3
static COREPOS\pos\lib\JsonLib::arrayToJson |
( |
|
$arr | ) |
|
|
static |
Convert an array to a JSON string
- Parameters
-
- Returns
- A JSON string representing the array
static COREPOS\pos\lib\JsonLib::encodeValueJson |
( |
|
$val | ) |
|
|
static |
Convert a variable to a JSON string
- Parameters
-
- Returns
- A JSON string representing the variable
static COREPOS\pos\lib\JsonLib::fixstring |
( |
|
$str | ) |
|
|
static |
Remove newlines, carriage returns, and tabs from the string (some browser don't like these in JSON strings) a string
- Returns
- the modified string
The documentation for this class was generated from the following file:
- pos/is4c-nf/lib/JsonLib.php