Core Function VSPrintf

From Sputnik Wiki
Revision as of 10:03, 1 September 2013 by UberFoX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
VSPrintf( <format control>, <params>... )

Contents

Description

Returns a formatted string (similar to the C sprintf() function) but accepts arrays as the arguments.

Parameters

format control

See SPrintf( <format control>, <params> ) for format control.

params

One or more arrays to pass as the arguments to VPrintf()

Return Value

None.

Remarks

This is basically a wrapper for the SPrintf( <format control>, <params> ) but accepts arrays of arguments and does them in sequence.

See SPrintf( <format control>, <params> ) for remarks.

Example

See SPrintf( <format control>, <params> ) for example.

print vsprintf("%04d-%02d-%02d", split('1988-8-1', '-')); // 1988-08-01
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox