1. Go to this page and download the library: Download shudrum/array-finder 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/ */
shudrum / array-finder example snippets
use Shudrum\Component\ArrayFinder\ArrayFinder;
$arrayFinder = new ArrayFinder([
'level_1' => [
'level_2' => [
'level_3' => 'value',
],
],
]);
$myValue = $arrayFinder->get('level_1.level_2.level_3');
// OR
$myValue = $arrayFinder['level_1.level_2.level_3'];