Mecha CMS

Helper functions.

set

Set array value recursively using dot notation.

2.2.0

set(array &$data, string $access, $value = null, string $join = '.');

Example:

// Set `$_GET['foo']['bar']['baz']` value to `true`
set($_GET, 'foo.bar.baz', true);