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

ob_get_length() public static method

Retrieves the length of the output buffer.
public static ob_get_length ( Context ctx ) : PhpValue
ctx Pchp.Core.Context
return Pchp.Core.PhpValue
        public static PhpValue ob_get_length(Context ctx)
        {
            var length = ctx.BufferedOutput.Length;
            return (length >= 0) ? PhpValue.Create(length) : PhpValue.False; 
        }