private function progress($string, $flags) {
		static $counter = 0;
		static $symbols = ["\\","|","/","-"];

		$this->output .= $string;
		
		if (false !== strpos($string, "\n")) {
			++$counter;
		}

		return $flags & PHP_OUTPUT_HANDLER_FINAL
			? "   \r"
			: sprintf("  %s\r", $symbols[$counter % 4]);
	}
private function progress($string, $flags) {
		static $counter = 0;
		static $symbols = ["\\","|","/","-"];

		$this->output .= $string;
		
		if (false !== strpos($string, "\n")) {
			++$counter;
		}

		return $flags & PHP_OUTPUT_HANDLER_FINAL
			? "   \r"
			: sprintf("  %s\r", $symbols[$counter % 4]);
	}
private function progress ( $ string , $ flags ) { static $ counter = 0 ; static $ symbols = [ "\\" , "|" , "/" , "-" ] ; $ this -> output .= $ string ; if ( false !== strpos ( $ string , "\n" ) ) { ++ $ counter ; } return $ flags & PHP_OUTPUT_HANDLER_FINAL ? "   \r" : sprintf ( "  %s\r" , $ symbols [ $ counter % 4 ] ) ; }
Output handler that displays some progress while soaking output
@param string $string
@param int $flags
@return string
Output handler that displays some progress while soaking output