| Versions | |
|---|---|
| 4.7 – 6 | element_children( |
| 7 | element_children(&$elements, $sort = FALSE) |
Get keys of a structured array tree element that are not properties (i.e., do not begin with '#').
includes/
<?php
function element_children($element) {
return array_filter(array_keys((array) $element), 'element_child');
}
?>