테스트 사이트 - 개발 중인 베타 버전입니다

그누보드5에서 PHP_EOL이 뭐할때 쓰는건가요?? 채택완료

도치즈 11년 전 조회 7,857
</strong></div>
<div><?php</div>
<div>if($config['cf_cert_use']) {</div>
<div>   if($config['cf_cert_ipin'])</div>
<div>      echo '<button type="button" id="win_ipin_cert" class="btn_frmline">아이핀 본인확인</button>'.PHP_EOL;</div>
<div>
</div>
<div>      if($config['cf_cert_hp'])</div>
<div>         echo '<button type="button" id="win_hp_cert" class="btn_frmline">휴대폰 본인확인</button>'.PHP_EOL;</div>
<div><span style="font-size: 10pt; line-height: 1.5">         </span>echo '<noscript>본인확인을 위해서는 자바스크립트 사용이 가능해야합니다.</noscript>'.PHP_EOL;</div>
<div>}</div>
<div>?></div>
<div><strong style="font-family: 돋움, dotum, helvetica; font-size: 12px; line-height: 21.59375px">

그누보드5에서 이런식으로 PHP_EOL를쓰던데요;; 이건 뭐할때쓰는건가요??
댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
11년 전
http://php.net/manual/en/reserved.constants.php" target="_blank">http://php.net/manual/en/reserved.constants.php
상수가 하도 많아서 메뉴얼 끼고 살아야겠습니다...ㅠㅠ

PHP_EOL (http://www.php.net/manual/en/language.types.string.php" class="type string" style="border-bottom-width: 1px; border-bottom-style: solid; text-decoration: none; color: rgb(51, 102, 153)" target="_blank">string)
The correct 'End Of Line' symbol for this platform. Available since PHP 4.3.10 and PHP 5.0.2


로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

도치즈
11년 전
아... php자체에있는함수였군요;; 감사합니다 ㅠㅠ;

댓글을 작성하려면 로그인이 필요합니다.

11년 전
서버 os에 따라 각기 다른 개행문자를 붙여주는 상수..


로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

도치즈
11년 전
감사합니다 ㅎㅎ

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인