PHP code example of bound1ess / dot
1. Go to this page and download the library: Download bound1ess/dot 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/ */
bound1ess / dot example snippets
$data = new Bound1ess\Dot([
'foo' => [
'bar' => 42,
'baz' => null,
],
]);
echo $data['foo.bar']; // 42
var_dump(isset ($data['foo.baz'])); // true
unset ($data['foo.bar']);
$data['foo.some.path'] = false;
var_dump($data->toArray()); // ['foo' => ['some' => ['path' => false], 'baz' => null]]