PHP Salt


A little dash of PHP... my collection of php functions

Version: 2.13.2
Last Build: October 09, 2016 21:15pm (PST)

psStripComments()
Strips HTML comments


Description:

Here is a quick wrap for stripping html comments from a string


Usage:

$buffer = psStripComments($buffer);


Example:

	$buffer = psStripComments("

");
// returns "

"



Code:

function psStripComments($buffer)
{
$buffer = preg_replace('//', '', $buffer);
return $buffer;
}

Changlelog:


See Also

And a shot out to:

LinuxSimple - www.linuxsimple.com
PHP - php.net
Fedora Server - getfedora.com
Shameless ads to pay for site