« Ds\Deque::join Ds\Deque::last » PHP Manual Deque Returns a representation that can be converted to JSON Ds\Deque::jsonSerialize (PECL ds >= 1.0.0) Ds\Deque::jsonSerialize — Returns a representation that can be converted to JSON See JsonSerializable::jsonSerialize() Note: You should never need to call this directly.