CastsCollections
in
CastsCollections
Tags
Table of Contents
- from() : CastsCollections<TKey, TValue>
- fromArray() : CastsCollections<TKey, TValue>
- New collection from array.
- fromJson() : CastsCollections<TKey, TValue>
- New collection from JSON.
Methods
from()
public
static from(iteratable<string|int, mixed> $items) : CastsCollections<TKey, TValue>
Parameters
- $items : iteratable<string|int, mixed>
Return values
CastsCollections<TKey, TValue> —fromArray()
New collection from array.
public
static fromArray(array<string|int, mixed> $array) : CastsCollections<TKey, TValue>
Parameters
- $array : array<string|int, mixed>
Return values
CastsCollections<TKey, TValue> —fromJson()
New collection from JSON.
public
static fromJson(string $json) : CastsCollections<TKey, TValue>
Parameters
- $json : string