2
$sector_value['sector_info']['purchase_order'];
에 액세스하려고 시도하는 라인에서이 코드가 오류를 나타내는 이유는 무엇입니까? 하지만 변수 번호 $sector_counter
을 인쇄하는 다섯 번째 줄에는 없습니까?은 heredoc의 배열에 액세스 할 수 없습니다
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www2isco/public_html/test/bch/queries/submit_order.php on line 44
감사 :
//SECTOR
$email_body .= <<<SECTOR_DETAILS
<tr>
<td colspan="2">
Sector $sector_counter;
</td>
</tr>
<tr>
<td colspan="2">
Purchase order
</td>
</tr>
<tr>
<td colspan="2">
$sector_value['sector_info']['purchase_order'];
</td>
</tr>
<tr>
<td>
Proof
</td>
</tr>
SECTOR_DETAILS;
이
오류입니다!
물론! 정말 고맙습니다! – 1252748