update : 2015.11.03
php.shukuma.com검색:
|
highlight_string(PHP 4, PHP 5) highlight_string — Syntax highlighting of a string 설명Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. 인수
반환값
If 예제
Example #1 highlight_string() example
<?php The above example will output (in PHP 4): <code><font color="#000000"> <font color="#0000BB"><?php phpinfo</font><font color="#007700">(); </font><font color="#0000BB">?></font> </font> </code> The above example will output (in PHP 5): <code><span style="color: #000000"> <span style="color: #0000BB"><?php phpinfo</span><span style="color: #007700">(); </span><span style="color: #0000BB">?></span> </span> </code> 주의
The HTML markup generated is subject to change. |