binary safe wrapper around json encode/decode using base64
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
public
static
|
stringify(mixed $data, string $encoding = 'base64_encode'): string
Convert an array to a string
Convert an array to a string Parameters
Returnson success, false on failure |
# | ||||||
public
static
|
convert(string $data): array|false
|
# | ||||||
public
static
|
unstringify(string|false $data, string $encoding = 'base64_decode', boolean $return = false): mixed
Convert a stringified array back to an array
Convert a stringified array back to an array Parameters
Returnsarray on success, false or original string on failure |
# | ||||||
public
static
|
hm_encode(array $data, string $encoding): array
Recursively encode values in an array
Recursively encode values in an array Parameters
|
# | ||||||