PHP code example of webiik / arr

1. Go to this page and download the library: Download webiik/arr 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/ */

    

webiik / arr example snippets


$array = [];
$arr = new \Webiik\Arr\Arr();
$arr->set('dot.notation.key', ['key' => 'val'], $array);

set(string $key, $val, array &$array): void

$arr->set('dot.notation.key', ['key' => 'val'], $array);

add(string $key, $val, array &$array): void

$arr->add('dot.notation.key', 'val', $array);

isIn(string $key, array $array): bool

$arr->isIn('dot.notation.key', $array)

get(string $key, array $array)

$arr->get('dot.notation.key', $array)

delete(string $key, array &$array): void

$arr->delete('dot.notation.test', $array);