I'm curious for the reasoning behind the following:
Works with no error:
$contact_data = <<<STRING
<contact>
<Group_Tag name="Contact Information">
<field name="First Name">$contact_first_name</field>
<field name="Last Name">$contact_last_name</field>
<field name="Email">$contact_email</field>
</Group_Tag>
</contact>
STRING;
Returns an error:
$contact_data = <<<STRING
<contact>
<Group_Tag name="Contact Information">
<field name="First Name">$contact_first_name</field>
<field name="Last Name">$contact_last_name</field>
<field name="Email">$contact_email</field>
</Group_Tag>
</contact>
STRING;
Error:
Parse error: syntax error, unexpected end of file.
As you can see, the only difference is that the second case is indented (4 spaces), and the first is not. I'm curious why...