Code:
$newCustomFields = $this->filter('custom_fields', 'array');
$newCustomFields = array_filter($newCustomFields);
I would like to make a check on " ";
Code:
private function checkElement($var)
{
return trim($var) != '';
}
How can I call checkElement?
Code:
$newCustomFields = array_filter($newCustomFields,'checkElement');
does not work
Any idea?