HumHub Documentation (unofficial)

LooseTypeCheck
in package
implements TypeCheckInterface

Table of Contents

Interfaces

TypeCheckInterface

Methods

isArray()  : mixed
isObject()  : mixed
propertyCount()  : mixed
propertyExists()  : mixed
propertyGet()  : mixed
propertySet()  : mixed
isAssociativeArray()  : bool
Check if the provided array is associative or not

Methods

isArray()

public static isArray(mixed $value) : mixed
Parameters
$value : mixed

isObject()

public static isObject(mixed $value) : mixed
Parameters
$value : mixed

propertyCount()

public static propertyCount(mixed $value) : mixed
Parameters
$value : mixed

propertyExists()

public static propertyExists(mixed $value, mixed $property) : mixed
Parameters
$value : mixed
$property : mixed

propertyGet()

public static propertyGet(mixed $value, mixed $property) : mixed
Parameters
$value : mixed
$property : mixed

propertySet()

public static propertySet(mixed &$value, mixed $property, mixed $data) : mixed
Parameters
$value : mixed
$property : mixed
$data : mixed

isAssociativeArray()

Check if the provided array is associative or not

private static isAssociativeArray(array<string|int, mixed> $arr) : bool
Parameters
$arr : array<string|int, mixed>
Return values
bool

        
On this page

Search results