why wont PHP allow echo "File owner: $user['name'] <br>";?

Daniel L

New member
I get a
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/daniel/Documents/website/phpbook/filedetails.php on line 22
 
The answer is right in the parse error. your variable is nothing but blank or white-characters when it's expecting a string or number.
 
Back
Top