pdf 출력시 단순 변환 문의입니다.
Copy
$tbl .= <<<EOD
</tbody>
<tfoot>
<tr style="line-height:18px;background-color:#deeaf6;">
<th colspan="14" align="left" class="td_14"> End of Document, generated by Training Management System</th>
</tr>
<tr>
<th colspan="14" align="left" class="td_14"> Printed at </th>
</tr>
<tr>
<th colspan="14" align="left" class="td_14"> End of Document, generated by Training Management System</th>
</tr>
</tfoot>
</table>
EOD;
로 하면 현재
이렇게 나옵니다.

위 처럼 바꾸려면 어떻게 하면될까요?
Printed at 뒤에는 출력한 날짜가 나오게 하고 싶습니다.
답변 1개
4년 전
$at_date= date( 'Y-m-d');
$tbl .= <<<EOD
...
<th colspan="14" align="left" class="td_14"> Printed at $at_date </th>
...
EOD;
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
brian10121
4년 전
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
signature:
같은건 어떻게 작성하면될까요?