This is the code for the function:
function isPresent($field)
{
return (isset($field) && !empty(trim($field)));
}
I am trying to validate a field in a form that is not empty. When I run the php, the error: Can't use function return value in write context shows up.