public static function print(string $text = '', string $foreground = null, string $background = null)
	{
		if ($foreground || $background)
		{
			$text = static::color($text, $foreground, $background);
		}

		static::$lastWrite = null;

		fwrite(STDOUT, $text);
	}
public static function print(string $text = '', string $foreground = null, string $background = null)
	{
		if ($foreground || $background)
		{
			$text = static::color($text, $foreground, $background);
		}

		static::$lastWrite = null;

		fwrite(STDOUT, $text);
	}
public static function print ( string $ text = '' , string $ foreground = null , string $ background = null ) { if ( $ foreground || $ background ) { $ text = static :: color ( $ text , $ foreground , $ background ) ; } static :: $ lastWrite = null ; fwrite ( STDOUT , $ text ) ; }
Outputs a string to the CLI without any surrounding newlines.
Useful for showing repeating elements on a single line.

@param string      $text
@param string|null $foreground
@param string|null $background
Outputs a string to the CLI without any surrounding newlines . Useful for showing repeating elements on a single line .