Документ взят из кэша поисковой машины. Адрес оригинального документа : http://oit.cmc.msu.ru/php/function.highlight-string.html
Дата изменения: Sun Feb 3 22:46:38 2002
Дата индексирования: Mon Oct 1 22:03:40 2012
Кодировка:
highlight_string

highlight_string

(PHP 4 >= 4.0.0)

highlight_string -- Syntax highlighting of a string

Description

bool highlight_string ( string str)

The highlight_string() function prints out a syntax highlighted version of str using the colors defined in the built-in syntax highlighter for PHP. Returns TRUE on success, FALSE on failure.

Tip: As with anything that outputs its result directly to the browser, you can use the output-control functions to capture the output of this function, and save it - for example - in a string.

See also highlight_file(), show_source().