PHP functions such as array_map and array_filter take an array, and a function as arguments.
EG:
$result = array_map(function (el) {
// do stuff
}, $elements)
Is it possible to pass a standard php function the same way?
Something along the lines of $result = array_map(boolval, $elements)
EDIT
The above example throws the error Undefined constant boolval
boolval$result = array_map('boolval', $elements);