Problem Description
How do I enable the colors for output of CLI?
The below one is, running on Ubuntu.
[![enter image description here][1]][1]
[1]: https://i.sstatic.net/Tnd00.png
<br><br>
If you see the screenshot, obviously the colors is enabled for terminal. And, if I call `echo`, it doesn't colorize the result, but if I use `echo -e`, it colorizes. <br>
I checked manual page of `echo`, and `-e` means **enable interpretation of backslash escapes**<br>
How can I enable this option for PHP CLI?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?