1. Go to this page and download the library: Download mmamedov/array-property 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/ */
$prop->myNewNode = "myValue"; //you can assign arrays as well.
echo $prop->myNewNode; //outputs 'myValue';
//overwrite existing elements
$prop->{1} = "banana";
echo $prop->{1}; //now outputs "banana" instead of "apple"
$prop->setMode(ArrayProperty::OBJECT_MODE);
var_dump($prop->myNewNode); //returns ArrayProperty object
$prop->setMode(ArrayProperty::MIXED_MODE);
var_dump($prop->myNewNode); //returns "myValue" which was set before
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.