1. Go to this page and download the library: Download omissis/arrayfunctions library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
omissis / arrayfunctions example snippets
use Omissis\ArrayFunctions;
use function Omissis\ArrayFunctions\get as array_get;
use function Omissis\ArrayFunctions\set as array_set;
// Retrieve a value by its key, optionally returning a default if the value is not found.
// $key can be a string or an array representing the path to the key you are interested into.
ArrayFunctions\get($array, $key, $default);
// Alternatively, use the function alias
array_get($array, $key, $default);
// Set the value of a key, returning the previous value if it was set.
// $key can be a string or an array representing the path to the key you are interested into.
ArrayFunctions\set($array, $key, $value)
// Alternatively, use the function alias
array_set($array, $key, $value);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.