array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.phpdbg-color.php', 1 => 'phpdbg_color', 2 => 'Sets the color of certain elements', ), 'up' => array ( 0 => 'ref.phpdbg.php', 1 => 'phpdbg 函数', ), 'prev' => array ( 0 => 'function.phpdbg-clear.php', 1 => 'phpdbg_clear', ), 'next' => array ( 0 => 'function.phpdbg-end-oplog.php', 1 => 'phpdbg_end_oplog', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/phpdbg/functions/phpdbg-color.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

phpdbg_color

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

phpdbg_colorSets the color of certain elements

说明

phpdbg_color(int $element, string $color): void

Set the color of the given element.

参数

element

One of the PHPDBG_COLOR_* constants.

color

The name of the color. One of white, red, green, yellow, blue, purple, cyan or black, optionally with either a trailing -bold or -underline, for instance, white-bold or green-underline.

返回值

没有返回值。

参见