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

vprintf() public static method

Generates output according to the specified formatting string.
public static vprintf ( Context ctx, string format, PhpArray args ) : int
ctx Pchp.Core.Context Current runtime context.
format string The formatting string.
args Pchp.Core.PhpArray Array of variables to format.
return int
        public static int vprintf(Context ctx, string format, PhpArray args)
        {
            var formattedString = Strings.vsprintf(ctx, format, args);
            ctx.Output.Write(formattedString);
            return formattedString.Length;
        }