|
PHP5中文手册
highlight_string(PHP 4, PHP 5) highlight_string — Syntax highlighting of a string 说明
mixed highlight_string
( string $str
[, bool $return
] )
Outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP. 参数
返回值If return is set to TRUE, returns the highlighted code as a string instead of printing it out. Otherwise, it will return TRUE on success, FALSE on failure. 更新日志
范例
Example#1 highlight_string() example
<?php The above example will output (in PHP 4):
The above example will output (in PHP 5):
注释
|