Skip to content

Commit 06bafbc

Browse files
committed
Add helper for ob_* functions
1 parent 28c8faa commit 06bafbc

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

src/Ob.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
/**
3+
* JBZoo Utils
4+
*
5+
* This file is part of the JBZoo CCK package.
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*
9+
* @package Utils
10+
* @license MIT
11+
* @copyright Copyright (C) JBZoo.com, All rights reserved.
12+
* @link https://github.com/JBZoo/Utils
13+
* @author Denis Smetannikov <[email protected]>
14+
*/
15+
16+
namespace JBZoo\Utils;
17+
18+
/**
19+
* Class Ob
20+
* @package JBZoo\Utils
21+
*/
22+
class Ob
23+
{
24+
/**
25+
* Clean ll ob_* buffers
26+
*/
27+
public static function clean()
28+
{
29+
while (@ob_end_clean()) {
30+
// noop
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)