Mecha CMS

Helper functions.

eq

Equal to.

2.2.0

eq($a, $b);

Example:

if (eq('abcdef', 5)) { … }
if (eq(['a', 'b', 'c', 'd', 'e', 'f'], 5)) { … }
if (eq(6, 5)) { … }

Note: The $a value will be passed through q function before being compared to the $b value.