Skip to content

set() method

Rieks Visser edited this page Sep 5, 2017 · 1 revision

Setting a value:

<?php
/** @var Mediact\DataContainer\DataContainer $container */
$container->set('categories.qux', ['name' => 'Qux']);
var_dump($container->get('categories.qux.name')); // Qux
Clone this wiki locally