Im은 PHP 매뉴얼을 참조하지만 Im은 초기 닫기 PHP 태그로 인해 구문 오류가 발생합니다. 분명히 Im은 PHP이지만 new는 PHP 문자열로 xml을 지정하려고 시도합니다. 뭐가 문제 야?PHP SimpleXML 사용법에 대한 구문 설명
<?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;
?>
정확한 오류 메시지를 알려주시겠습니까? – Ariel
오류를 신호하는 유일한 방법은 구문 강조입니다. Dreamweaver php 태그가 열리고 닫힙니다. xml heading closing 태그가 닫는 PHP 태그로 읽혀지고 빨간색으로 작성됩니다. 이것은 드림위버 문제 일뿐입니까? – mcgraw