src/CLI/Output.php
public function sameLine( $string = "", $sleep = 0 ){
		$string		= Alg_Text_Trimmer::trimCentric( $string, 78 );									//  trim string to <80 columns
		$spaces		= max( 0, strlen( $this->lastLine ) - strlen( $string ) );
		$this->lastLine	= $string;
		$fill		= str_repeat( " ", $spaces );
		print( "\r" . $string . $fill );
		if( $sleep )
			sleep( $sleep );
	}
public function sameLine( $string = "", $sleep = 0 ){
		$string		= Alg_Text_Trimmer::trimCentric( $string, 78 );									//  trim string to <80 columns
		$spaces		= max( 0, strlen( $this->lastLine ) - strlen( $string ) );
		$this->lastLine	= $string;
		$fill		= str_repeat( " ", $spaces );
		print( "\r" . $string . $fill );
		if( $sleep )
			sleep( $sleep );
	}
public function sameLine ( $ string = "" , $ sleep = 0 ) { $ string = Alg_Text_Trimmer :: trimCentric ( $ string , 78 ) ; //  trim string to <80 columns $ spaces = max ( 0 , strlen ( $ this -> lastLine ) - strlen ( $ string ) ) ; $ this -> lastLine = $ string ; $ fill = str_repeat ( " " , $ spaces ) ; print ( "\r" . $ string . $ fill ) ; if ( $ sleep ) sleep ( $ sleep ) ; }
Display text in current line.
@access		public
@param		string		$string		Text to display
@param		integer		$sleep		Seconds to sleep afterwards
@return		void
Display text in current line .