PHP code example of picios / dottedarray

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

    

picios / dottedarray example snippets

 php

use Picios\DottedArray\DottedArray;

oths' => 'always lack',
		'money' => 'never enough',
		'mind' => 'calm',
	),
	
	'men' => array(
		'cloths' => 'whatever',
		'money' => 'hidden',
		'mind' => 'reckless',
	),
);

$dottedArray = new DottedArray($array);
echo $dottedArray->get('women.cloths');

$dottedArray->set('women.cloths', 'ok');
echo $dottedArray->get('women.cloths');
 php
$session = new \Picios\DottedArray\DottedArray($_SESSION);
echo $session->get('user.name');

sudo phpunit test --bootstrap vendor/autoload.php