Documentation

Utils
in package
Uses UtilsProvider

Util functionalities.

Table of Contents

Methods

endsWith()  : mixed
Check if a string starts with a given needle.
expandKeys()  : mixed
Expand keys to dot notation so `skipKeys` works as expected and can skip multidimensional arrays. This functionality also keeps the reference!
getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
setupConstants()  : mixed
Make sure the DEVOWL_MULTILINGUAL constants are available.
startsWith()  : mixed
Check if a string starts with a given needle.

Methods

endsWith()

Check if a string starts with a given needle.

public static endsWith(string $haystack, string $needle) : mixed
Parameters
$haystack : string

The string to search in

$needle : string

The starting string

Tags
see
https://stackoverflow.com/a/834355/5506547
codeCoverageIgnore

expandKeys()

Expand keys to dot notation so `skipKeys` works as expected and can skip multidimensional arrays. This functionality also keeps the reference!

public static expandKeys(mixed &$arr[, string $skipKeys = [] ]) : mixed
Parameters
$arr : mixed
$skipKeys : string = []
Tags
see
https://stackoverflow.com/a/40217420/5506547

getPluginConstantPrefix()

Get the prefix of this package so we can utils package natively.

public getPluginConstantPrefix() : string
Return values
string

setupConstants()

Make sure the DEVOWL_MULTILINGUAL constants are available.

public static setupConstants() : mixed

startsWith()

Check if a string starts with a given needle.

public static startsWith(string $haystack, string $needle) : mixed
Parameters
$haystack : string

The string to search in

$needle : string

The starting string

Tags
see
https://stackoverflow.com/a/834355/5506547
codeCoverageIgnore

        
On this page

Search results