From 52cb4c6667e06dcf044bdf510af58cd3228bbd35 Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Wed, 27 Feb 2002 19:07:36 +0000 Subject: [PATCH] highlight_string: Add note regarding new str parameter 4.2.0 birthday. And other minor updates. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@71088 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/misc.xml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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.