note 87187 added to function.echo

From: Date: Sun, 23 Nov 2008 14:23:00 +0000
Subject: note 87187 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-146844@lists.php.net to get a copy of this message
A way to color your echo output is to use shell_exec and the echo command (this only works on Linux/bash) in the following way: <? echo shell_exec('echo "\e[0;31m Red color \e[0;32mGreen color \e[0m No color "'); ?> See http://wiki.archlinux.org/index.php/Color_Bash_Prompt for more colors and other options. ---- Server IP: 195.184.96.15 Probable Submitter: 212.242.52.207 ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- https://master.php.net/note/edit/87187 Del: integrated -- https://master.php.net/note/delete/87187/integrated Del: useless -- https://master.php.net/note/delete/87187/useless Del: bad code -- https://master.php.net/note/delete/87187/bad+code Del: spam -- https://master.php.net/note/delete/87187/spam Del: non-english -- https://master.php.net/note/delete/87187/non-english Del: in docs -- https://master.php.net/note/delete/87187/in+docs Del: other reasons-- https://master.php.net/note/delete/87187 Reject -- https://master.php.net/note/reject/87187 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146844) next »