protected static function out($str) { if (PHP_SAPI === 'cli') { echo $str . "\n"; } else { echo "<div>" . nl2br($str) . "</div>"; } }