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; }