Skip to content

has() method

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

Checking whether a value has been set:

<?php
/** @var Mediact\DataContainer\DataContainer $container */
var_dump($container->has('categories.foo')); // true
var_dump($container->has('categories.qux')); // false
Clone this wiki locally