I'd like to do a multi line carriage return with php for the command line. Is this possible?
I know already how to achieve it with one line print("\r")
but it like to know how to do this on multiple lines.
The printed data should look like this:
$output = "
Total time passed: 34, \n
Total tests: 14/523
";
print($output . "\r");
It works for a single line so that there is not a new line added every time it is printed in the loop. When i use it with a PHP_EOL, or \n i'm getting new lines all the time. I just want two lines to show up while updating it.