Strange error

I got the error

Parse error : syntax error, unexpected ‘’ (T_ENCAPSED_AND_WHITESPACE), expecting ‘-’ or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)

on the following line:

$email = $_POST['email'];

when I try

$email   = "{$_POST['email']}";

or even
$email = $_POST[email];

the parse error disappears. But the error only occurs in a php72.29 (on my live server) but not on my local server with php7.7.4

Thanks for help
Tony

What is the line before that?

Sponsor our Newsletter | Privacy Policy | Terms of Service