php clear output

Solutions on MaxInterview for php clear output by the best coders in the world

showing results for - "php clear output"
Fran
05 Feb 2018
1ob_end_clean();
Giuseppe
16 Feb 2018
1<?php
2
3ob_start();
4echo 'a';
5print 'b';
6
7// some statement that removes all printed/echoed items
8ob_end_clean();
9
10echo 'c';
11
12// the final output is equal to 'c', not 'abc'
13
14?>