Im referencing the PHP manual but Im getting a syntax error due to the early closing php tag-Obviously Im a newb to php but Im only attempting to assign the xml as a php string. Whats the problem here?
<?php
$xmlstr = <<<XML //Need a clarification on '<<<XML' if possible
<?xml version='1.0' standalone='yes'?> //This is closing my php script and causing error
<details>
<detail>
<user>mcgraw</user>
<dateA>09/11/1973</dateA>
<inTime>9:00am</inTime>
<outTime>6:00pm</outTime>
<hours>9</hours>
<notes>Monday</notes>
</detail>
<detail>
<user>simpson</user>
<dateA>08/23/1983</dateA>
<inTime>9:00am</inTime>
<outTime>5:30pm</outTime>
<hours>8.5</hours>
<notes>Thursday</notes>
</detail>
</details>
XML;
?>