Advertisement
Zicode404

PHP Color

Oct 19th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.97 KB | None | 0 0
  1. public $foreground_colors = [];
  2.  
  3.   public function __construct() {
  4.       $this->foreground_colors['black'] = "\e[0;30m";
  5.       $this->foreground_colors['dark_gray'] = "\e[1;30m";
  6.       $this->foreground_colors['blue'] = "\e[0;34m";
  7.       $this->foreground_colors['light_blue'] = "\e[1;34m";
  8.       $this->foreground_colors['green'] = "\e[0;32m";
  9.       $this->foreground_colors['light_green'] = "\e[1;32m";
  10.       $this->foreground_colors['cyan'] = "\e[0;36m";
  11.       $this->foreground_colors['light_cyan'] = "\e[1;36m";
  12.       $this->foreground_colors['red'] = "\e[0;31m";
  13.       $this->foreground_colors['light_red'] = "\e[1;31m";
  14.       $this->foreground_colors['purple'] = "\e[0;35m";
  15.       $this->foreground_colors['light_purple'] = "\e[1;35m";
  16.       $this->foreground_colors['brown'] = "\e[0;33m";
  17.       $this->foreground_colors['yellow'] = "\e[1;33m";
  18.       $this->foreground_colors['light_gray'] = "\e[0;37m";
  19.       $this->foreground_colors['white'] = "\e[1;37m";
  20.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement