All pastes #620367 Raw Edit

Stuff

public php v1 · immutable
·published 2007-07-15 13:10 UTC
rendered paste body
function text( $text, $color = '', $style = '' ) {                if(!empty( $color )) {                        $colors = explode( ',', $color );                        if(count( $colors ) > 1) {                                $result = $this->color( $colors[0] ).','.$this->color( $colors[1], false ).$text."\x03";                        } else {                                $result = $this->color( $colors[0] ).$text.$this->color( $colors[0] );                        }                        $text = $result;                }                if(!empty( $style )) {                        $styles = explode( ',', $style );                        foreach( $styles as $style ) {                                $text = $this->style( $style ).$text.$this->style( $style );                        }                }                return $text;        }