Comments and Comment Blocks in PHP 의견이나 코멘트를 차단 php
PHP supports C language, C++ programming language and Unix shell-style (Perl style) comments. php를 지원 c 언어, c + + 프로그래밍 언어와 유닉스 쉘 - 스타일 (펄 스타일) 코멘트합니다. In PHP, // or # is used to make a single-line comment or /* and */ to make a large comment block that spans several lines. 이 php, / / 또는 #을 사용하여 단일 - 라인 코멘트를 만들 또는 / *와 * /를 여러 라인에 걸쳐있는 대형 코멘트를 블록이있습니다.
For example: 예를 들면 :
<?php <함수
echo ‘This is a test’; //This is a single-line C++ style comment 에코 '이것은 테스트'; / / 이것은 단일 - 라인 c + + 스타일 주석
echo ‘This is another test’;#This is another single-line shell-style comment 에코 '이것은 다른 테스트'; #이 자체가 또 다른 하나 - 라인 쉘 - 스타일 코멘트
/* This is a multi line comment / * 이것은 다중 라인 주석
Second line of comment */ 두 번째 줄에의 주석을 * /
?>
The “one-line” comment styles comment to the end of the line or the current block of PHP code, whichever comes first. "한 - 선"코멘트 스타일 주석의 끝에 라인이나 현재의 블럭의 코드, 둘 중 먼저 해당합니다. This means that HTML code after the PHP script block (PHP mode broken with ?> and returns to HTML mode after end of PHP code block) will be printed. 즉, html 코드를 php 스크립트 블록 (php 모드로 부서지는가?>을 반환 코드를 html 모드로 후에 마지막 블록)가 인쇄합니다. If the asp_tags configuration directive is enabled, it behaves the same with // %> and # %>. asp_tags 구성 지시문이 활성화된 경우에, 그것과 같은 행동을 / / "%>와 #"%>. However, the </script> tag doesn’t break out of PHP mode in a single-line comment. 그러나이 </ 스크립트> 태그를 벗어나려하지 않습니다 php 모드에서 단일 - 라인 코멘트를합니다.
For example, 예를 들면,
<h1>This is an <?php # echo ’simple’;?> example.<h1> <h1> 이것은 <함수 # 에코 '단순';?> 예. <h1>
<p>The header above will say ‘This is an example’.</p> <p> 이상의 헤더가 말하는 '이것은 예입니다'. </ p>
C or C++ style comments end at the first */ encountered. c 또는 c + + 스타일 주석 끝에 첫 번째 * / 발생합니다. Any nested /* and */ style comments will cause error, and it’s pretty easy to make this mistake if you are trying to comment out a large block of code. 중첩된 / * 및 * / 스타일의 코멘트가 원인 오류, 그리고 아주 간단하게 실수를하려고하는 경우 대형 블럭의 코드를 주석으로 처리합니다.
<?php <함수
/* / *
echo ‘This is a test’; /* This comment will cause a problem */ 에코 '이것은 테스트'; / *이 코멘트에 문제가 발생 * /
*/ * /
?>
The PHP comments is useful when you want to comment or disable a large portion of HTML. the php 의견은 코멘트를하거나 사용하지 않도록하려는 경우에 유용합니다 큰 부분을 html합니다. Instead comment the HTML code line by line, put the whole HTML block into PHP code block (ie, add <?php and ?>) and comment with /* and */. 대신에 주석의 코드 한줄씩, 그 전체 html 블록을 코드 블록 (즉, 추가 <함수 그리고?>)와 코멘트와 함께 / *와 * /합니다.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 사항 : 이것은 기계 번역 페이지는 "있는 그대로"제공하지 않고 보증합니다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 를 참조하시기 바랍니다 original English article 기존 영어 자료 whenever possible. 언제 수있습니다.
Share and contribute or get technical support and help at 를 공유하고 기술 지원 및 도움을 공헌하지 않는다면 My Digital Life Forums 내 디지털 라이프 공개 토론 . 합니다.
Related Articles 관련 기사
- 3 Column Relaxation WordPress Theme comments-paged.php for Paged-Comments WordPress Plugin 3 개의 란 wordpress 테마 코멘트 - paged.php을 이완을 호출 - 의견 플러그 접속식
- Fight and Stop Comment Spam and Trackback Spam with Akismet 코멘트 스팸과 트랙백 스팸 메일과 싸우는 Akismet 플러그 및 중지
- Integrate WordPress including Comments with bbPress Forum using bbSync bbpress 공개 토론를 사용하여 의견을 포함하여 통합하는 wordpress bbsync
- PHP Parse Error: syntax error, unexpected $end php 구문 분석 오류 : 구문 오류가 발생, 예상치 못한 $ 끝
- How to Add and Put Picture or Image in MySpace Comment 사진이나 이미지를 추가하는 방법에 거기다가 코멘트를 myspace
- Reduce Server Load Using Akismet to Automatically Discard Spam Comments on Posts Older than A Month 스팸 메일을 자동으로 삭제 Akismet 플러그를 사용하여 서버의 부하 감소에 대한 의견보다 훨씬 나이가 한 달에 게시물
- Free Download: Akismet for WordPress Plugin 2.0 to Stop Comment, Trackback and Pingback Spam 무료로 다운로드 : Akismet 플러그를 플러그 접속식 2.0을 중지 코멘트, 트랙백과 pingback 스팸 메일
- Stop Comment, Pingback and Trackback Spam with New Version of Akismet 정지 코멘트와 트랙백 스팸 메일과 pingback의 새 버전을 Akismet 플러그
- WordPress 2.2 Released for Free Download wordpress 2.2 릴리스를 무료로 다운로드
- Rapid Leech Download from RapidShare, MegaUpload, Uploading, MyTempDir and Other File Sharing Services to Server 급속한 거머리에서 다운로드 rapidshare, megaupload, 업로드, 파일 공유 서비스를 서버와 기타 mytempdir





























July 26th, 2006 06:45 2006년 7월 26일 06:45
[...] http://www.mydigitallife.info/2006/04/26/dis… . 합니다. [...]
December 10th, 2007 01:30 2007년 12월 10일 01:30
[...] tip of the hat to My Digital Life for his article - Comments and Comment Blocks in PHP. [...] 빙산의 모자를 내 디지털 라이프에 대한 그의 기사 - 의견이나 코멘트를 차단 php합니다. By Alec Tags: [...] 알렉 의해 태그 : [...]