I was wondering about this escape sequence.
The PHP Manual says that \e represents “escape”
Well, i’ve googled it and found about ANSI Escape Sequences,
i dont know if this \e refers them.
From Wikipedia:
ANSI escape sequences are characters embedded in the text used to control formatting, color, and other output options on video text terminals.
But i cant see how this escape sequences and PHP can interact.
I don’t know if all the things that post are correct.
Can someone talk about this topic and show examples?
PHP cannot only be used with a web server; PHP scripts can run from the command line, like this:
If one makes a PHP script which is meant to run from the command line (e.g. the
cakecommand which ships with CakePHP),\ecan come in handy when you want to do colors and formatting in terminal emulators.You can find more about these escape sequences on this page.