class Colours (View source)

Methods

string
setColour(string $string, string $foreground = null, string $background = null)

Colourize string.

Details

final string setColour(string $string, string $foreground = null, string $background = null)

Colourize string.

Parameters

string $string string to colourize
string $foreground foreground colour
string $background background colour

Return Value

string