- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_format(const str: string): string;
Arguments:
-
Description:
-
Perl/PHP/PSP-style string formatting. Replaces $var_name and {$var_name} sequences with results of web_get_var('varname') calls, i.e. with PSP variables.
Returns:
-
Formatted string.
Usage:
-
web_set_var('test', 'fish');
s := 'Put some $test here, and {$test}3 too.';
s := web_format(s);
See also:
-
web_format_dotnet, web_printf, web_printfa, web_printfln, web_printfaln.
|