Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<phpdbg_clearphpdbg_end_oplog>
^phpdbg FunctionsLast updated: Mon, 26 Oct 2026

phpdbg_color

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

phpdbg_color — Sets the color of certain elements

Description

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

Set the color of the given element.

Parameters

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.

Return Values

No value is returned.

See Also


<phpdbg_clearphpdbg_end_oplog>
^phpdbg FunctionsLast updated: Mon, 26 Oct 2026