Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * Formats a string using the sprintf function |
---|
5 | * <pre> |
---|
6 | * * value : the string to format |
---|
7 | * * format : the format to use, see {@link http://php.net/sprintf} for details |
---|
8 | * </pre> |
---|
9 | * This software is provided 'as-is', without any express or implied warranty. |
---|
10 | * In no event will the authors be held liable for any damages arising from the use of this software. |
---|
11 | * |
---|
12 | * @author Jordi Boggiano <j.boggiano@seld.be> |
---|
13 | * @copyright Copyright (c) 2008, Jordi Boggiano |
---|
14 | * @license http://dwoo.org/LICENSE Modified BSD License |
---|
15 | * @link http://dwoo.org/ |
---|
16 | * @version 1.0.0 |
---|
17 | * @date 2008-10-23 |
---|
18 | * @package Dwoo |
---|
19 | */ |
---|
20 | function Dwoo_Plugin_string_format_compile(Dwoo_Compiler $compiler, $value, $format) |
---|
21 | { |
---|
22 | return 'sprintf('.$format.','.$value.')'; |
---|
23 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.