Classic ASP (basic) implementation of PHP's sprintf() function


/ Published in: ASP
Save to your folder(s)

This is a basic implementation of PHP's handy sprintf() written in Classic ASP/VBScript. It's not as extensive as PHP's version as it doesn't support numbered parameters, and only works with %s placeholders, but it's better than nothing, right?

Makes for nice clean, understandable code as you can avoid concatenated strings containing function calls mid-string.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.