PHP code example of viloveul / support
1. Go to this page and download the library: Download viloveul/support 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/ */
viloveul / support example snippets
$object = new class implements ArrayAccess {
use Viloveul\Support\AttrAwareTrait;
private $attributes = [];
};
$object->setAttributes(['anu' => 'gemes']);
$object->setFoo('bar');
$object->setAttributes('{"if": "print"}');
var_dump($object->getAnu(), $object->getDor('yes'), $object->getFoo('no'), $object->foo, $object['foo'], $object);