PHP code example of muse / array_nested

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

    

muse / array_nested example snippets


$arr = ["deep" => ["vervy deep" => 123,],];
$val = array_nested($arr, ["deep", "vervy deep"]); // 123

$arr = [42];
$prev = array_nested($arr, [1, 2, 3], "test"); // null
var_export($arr); // [0=>42, 1=>[2=>[3=>"test"]]]