Skip to content

remove() method

Rieks Visser edited this page Sep 5, 2017 · 2 revisions

Removing a value:

<?php
/** @var Mediact\DataContainer\DataContainer $container */
$container->remove('categories.qux');
var_dump($container->has('categories.qux')); // false

The remove method also supports wildcards, for example remove('bar.*');

Clone this wiki locally