diff --git a/functions/misc.xml b/functions/misc.xml index 6bdf58cc31..5022ed9e2b 100644 --- a/functions/misc.xml +++ b/functions/misc.xml @@ -1,5 +1,5 @@ - + Miscellaneous functions Misc. @@ -594,7 +594,7 @@ http://your.server.com/source/path/to/script.php intreturn - The highlight_string function prints out a syntax + The highlight_string function outputs a syntax highlighted version of str using the colors defined in the built-in syntax highlighter for PHP. @@ -602,10 +602,17 @@ http://your.server.com/source/path/to/script.php If the second parameter return is set to &true; then highlight_string will return the highlighted code as a string instead of printing it out. If the second parameter is - not set to &true;, it will return &true; on success, &false; on failure. + not set to &true; then highlight_string will + return &true; on success, &false; on failure. + + + The return parameter became available in PHP + 4.2.0. Before this time it behaved like the default, which is &false; + + - See also highlight_file, + See also highlight_file, and show_source.