PHP code example of william-lindner / delimiter_array_access
1. Go to this page and download the library: Download william-lindner/delimiter_array_access 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/ */
william-lindner / delimiter_array_access example snippets
delimiter_array_access( string $needle, array $haystack, [ string $delimiter = '.' ] ) : mixed
$myArray = [
'my' => [
'assoc' => [
'array' => 'I found a value.'
]
]
];
// This will output 'I found a value.'
echo delimiter_array_access('my.assoc.array', $myArray) . PHP_EOL;
bash
$ composer