File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -340,19 +340,23 @@ method, which returns an instance of
340
340
341
341
$section1->writeln('Hello');
342
342
$section2->writeln('World!');
343
+ sleep(1);
343
344
// Output displays "Hello\nWorld!\n"
344
345
345
346
// overwrite() replaces all the existing section contents with the given content
346
347
$section1->overwrite('Goodbye');
348
+ sleep(1);
347
349
// Output now displays "Goodbye\nWorld!\n"
348
350
349
351
// clear() deletes all the section contents...
350
352
$section2->clear();
353
+ sleep(1);
351
354
// Output now displays "Goodbye\n"
352
355
353
356
// ...but you can also delete a given number of lines
354
357
// (this example deletes the last two lines of the section)
355
358
$section1->clear(2);
359
+ sleep(1);
356
360
// Output is now completely empty!
357
361
358
362
// setting the max height of a section will make new lines replace the old ones
You can’t perform that action at this time.
0 commit comments