Download the PHP package flextype-components/arrays without Composer
On this page you can find all versions of the php package flextype-components/arrays. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flextype-components/arrays
More information about flextype-components/arrays
Files in flextype-components/arrays
Package arrays
Short Description Arrays Component contains methods that can be useful when working with arrays.
License MIT
Informations about the package arrays
Arrays Component
Installation
With Composer:
Usage
Methods
Method | Description |
---|---|
Arrays::set() |
Set an array item to a given value using "dot" notation. If no key is given to the method, the entire array will be replaced. |
Arrays::get() |
Returns value from array using "dot notation". If the key does not exist in the array, the default value will be returned instead. |
Arrays::delete() |
Deletes an array value using "dot notation". |
Arrays::has() |
Checks if the given dot-notated key exists in the array. |
Arrays::dot() |
Flatten a multi-dimensional associative array with dots. |
Arrays::undot() |
Expands a dot notation array into a full multi-dimensional array. |
Method: Arrays::set()
Set an array item to a given value using "dot" notation. If no key is given to the method, the entire array will be replaced.
Method: Arrays::get()
Returns value from array using "dot notation". If the key does not exist in the array, the default value will be returned instead.
Method: Arrays::delete()
Deletes an array value using "dot notation".
Method: Arrays::has()
Checks if the given dot-notated key exists in the array.
Method: Arrays::dot()
Flatten a multi-dimensional associative array with dots.
Method: Arrays::undot()
Expands a dot notation array into a full multi-dimensional array.
License
The MIT License (MIT) Copyright (c) 2020 Sergey Romanenko