Documentation

Arr

Helper for interacting with arrays

Tags
author

Jason Napolitano

version
1.0.0
since
1.0.0
license

MIT https://mit-license.org

Table of Contents

hasKey()  : bool
Wrapper for array_key_exists()
trim()  : array<string|int, mixed>
Trim individual array keys

Methods

hasKey()

Wrapper for array_key_exists()

public static hasKey(string $key, array<string|int, mixed> $array) : bool
Parameters
$key : string
$array : array<string|int, mixed>
Tags
see
array_key_exists()
Return values
bool

trim()

Trim individual array keys

public static trim(array<string|int, mixed> $array) : array<string|int, mixed>
Parameters
$array : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results