Mecha CMS

Helper functions.

has

Check if array contains item.

2.2.0

has(array $data, $v);

Example:

if (has([1, 2, 3, 4, 5], 3)) { … }