Mecha CMS

Helper functions.

z

Convert PHP array/object into a compact string of PHP array syntax.

2.0.0

z($value, $short = true);

Example:

content('.\state.php', '<?' . 'php return ' . z([
    'foo' => 'bar',
    'baz' => [1, 2, true]
]));