/// <summary> /// Gets the contents of the current buffer and cleans it. /// </summary> /// <returns>The content of type <see cref="string"/> or <see cref="byte"/> or <c>false</c>.</returns> public static PhpValue ob_get_clean(Context ctx) { BufferedOutput bo = ctx.BufferedOutput; var result = bo.GetContent(); bo.Clean(); EndInternal(ctx, true); return(result); }
public static object GetAndClean() { ScriptContext context = ScriptContext.CurrentContext; BufferedOutput bo = context.BufferedOutput; object result = bo.GetContent(); bo.Clean(); EndInternal(context, true); return(result); }