1. Go to this page and download the library: Download drewlabs/php-value 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/ */
// Imports
use function Drewlabs\PHPValue\Functions\CreateAdapter;
$value = CreateAdapter([
// dynamic properties
'name',
'address'
]);
// Imports
use function Drewlabs\PHPValue\Functions\CreateAdapter;
$value = CreateAdapter([
// dynamic properties
'name',
'address'
]);
// This tries to create a deep copy of the object
$value1 = $value->copy([
'name' => 'Sidoine Azandrew'
]);
// Imports
use function Drewlabs\PHPValue\Functions\CreateAdapter;
$value = CreateAdapter([
// dynamic properties
'name',
'address'
]);
$result = $value['name'];
// Same as
$result = $value->name;
// Same as
$result = $value->getAttribute('name');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.