This question already has an answer here:
$email
has data; not empty but
!empty($email)
<< false
and !empty('$email')
<< true
But I have some problems
Parse error syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting T_STRING or T_VARIABLE or '$' in