Zend\Json\Encoder::_encodeArray
JSON encode an array value
Recursively encodes each value of an array and returns a JSON encoded array string. Arrays are defined as integer-indexed arrays starting at index 0, where the last index is (count($array) -1); any deviation from that is considered an associative array, and will be encoded as such.
Signature
protected function _encodeArray(array&
$array )
Parameters
$array
— array
Returns
- string