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 @@ -319,19 +319,23 @@ method, which returns an instance of
319
319
320
320
$section1->writeln('Hello');
321
321
$section2->writeln('World!');
322
+ sleep(1);
322
323
// Output displays "Hello\nWorld!\n"
323
324
324
325
// overwrite() replaces all the existing section contents with the given content
325
326
$section1->overwrite('Goodbye');
327
+ sleep(1);
326
328
// Output now displays "Goodbye\nWorld!\n"
327
329
328
330
// clear() deletes all the section contents...
329
331
$section2->clear();
332
+ sleep(1);
330
333
// Output now displays "Goodbye\n"
331
334
332
335
// ...but you can also delete a given number of lines
333
336
// (this example deletes the last two lines of the section)
334
337
$section1->clear(2);
338
+ sleep(1);
335
339
// Output is now completely empty!
336
340
337
341
// 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