CRM_Utils_CommaKV
in package
Implement a serialization format where:
- Items are comma-separated
- Items maybe barewords or "key=value" pairs
This format is not well-defined for all possible inputs. It should not be used. It's included for working with legacy data.
Table of Contents
Methods
- serialize() : mixed
- unserialize() : array<string|int, mixed>
- Convert key=val options into an array while keeping compatibility for values only.
Methods
serialize()
public
static serialize(mixed $values) : mixed
Parameters
- $values : mixed
unserialize()
Convert key=val options into an array while keeping compatibility for values only.
public
static unserialize(mixed $string) : array<string|int, mixed>
Parameters
- $string : mixed