Reference
T
Trait

ApiPlatform\Util\ArrayTrait

trait ApiPlatform\Util\ArrayTrait
{
    public isSequentialArrayOfArrays(array $array): bool
    public isSequentialArray(array $array): bool
    public arrayContainsOnly(array $array, string $type): bool
}
trait ApiPlatform\Util\ArrayTrait
{
    public isSequentialArrayOfArrays(array $array): bool
    public isSequentialArray(array $array): bool
    public arrayContainsOnly(array $array, string $type): bool
}

Methods

isSequentialArrayOfArrays

public isSequentialArrayOfArrays(array $array): bool
public isSequentialArrayOfArrays(array $array): bool

Parameters

arrayarray

Returns

bool

isSequentialArray

public isSequentialArray(array $array): bool
public isSequentialArray(array $array): bool

Parameters

arrayarray

Returns

bool

arrayContainsOnly

public arrayContainsOnly(array $array, string $type): bool
public arrayContainsOnly(array $array, string $type): bool

Parameters

arrayarray
typestring

Returns

bool

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop