[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
share
/
doc
/
cpanel-php84-console-color
/
examples
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 color_example.php
928 B
SET
[ EDIT ]
|
[ DEL ]
📄 documentation
2,807 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: color_example.php
<?php require 'Console/Color.php'; error_reporting(E_ALL); // Let's add a little color to the world // %n resets the color so the following stuff doesn't get messed up print Console_Color::convert("%bHello World!%n\n"); // Colorless mode, in case you need to strip colorcodes off a text print Console_Color::convert("%rHello World!%n\n", false); // The uppercase version makes a colorcode bold/bright print Console_Color::convert("%BHello World!%n\n"); // To print a %, you use %% print Console_Color::convert("3 out of 4 people make up about %r75%% %nof the " ."world population.\n"); // Or you can use the escape() method. print Console_Color::convert("%y" .Console_Color::escape('If you feel that you do everying wrong, be random' .', there\'s a 50% Chance of making the right ' .'decision.')."%n\n"); ?>