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

printf() public static method

Generates output according to the specified formatting string.
public static printf ( Context ctx, string format ) : int
ctx Pchp.Core.Context Current runtime context.
format string The formatting string. See also the sprintf function ().
return int
        public static int printf(Context ctx, string format, params PhpValue[] args)
        {
            var formattedString = Strings.FormatInternal(ctx, format, args);
            ctx.Output.Write(formattedString);
            return formattedString.Length;
        }