Return to Snippet

Revision: 1259
at September 27, 2006 08:55 by gdonald


Updated Code
function cleanFinalOutput( $html )
{
  $html = eregi_replace( "\n", '', $html );
  $html = eregi_replace( "\r", '', $html );
  return eregi_replace( "\t", '', $html );
}

Revision: 1258
at September 27, 2006 08:54 by gdonald


Initial Code
function cleanFinalOutput( $html )
{
	if( $GLOBALS[ 'SITE_CLEAN_FINAL_OUTPUT' ] )
    {
		$return = eregi_replace( "\n", '', $html );
		
        $return = eregi_replace( "\r", '', $return );

		return eregi_replace( "\t", '', $return );
	}
    else
    {
		return $html."
";
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
php clean output

Initial Tags

                                

Initial Language
PHP