Skip to content

Instantly share code, notes, and snippets.

View Saberko's full-sized avatar
😴
Sleeping

Saberko

😴
Sleeping
View GitHub Profile
@Saberko
Saberko / out.php
Last active November 16, 2015 08:18
php控制台输出带颜色信息
<?php
function out($text, $status) {
$str = '';
switch($status) {
case 'SUCCESS':
$str = "[42m";
break;
case 'FAIL':
$str = "[41m";