Pchp.Library.Output.ob_get_clean C# (CSharp) Method

ob_get_clean() public static method

Gets the contents of the current buffer and cleans it.
public static ob_get_clean ( Context ctx ) : PhpValue
ctx Pchp.Core.Context
return Pchp.Core.PhpValue
        public static PhpValue ob_get_clean(Context ctx)
        {
            BufferedOutput bo = ctx.BufferedOutput;

            var result = bo.GetContent();
            bo.Clean();
            EndInternal(ctx, true);
            return result;
        }