mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			380 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			380 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /*
 | |
|  * Smarty plugin
 | |
|  * -------------------------------------------------------------
 | |
|  * Type:     modifier
 | |
|  * Name:     string_format
 | |
|  * Purpose:  format strings via sprintf
 | |
|  * -------------------------------------------------------------
 | |
|  */
 | |
| function smarty_modifier_string_format($string, $format)
 | |
| {
 | |
|     return sprintf($format, $string);
 | |
| }
 | |
| 
 | |
| /* vim: set expandtab: */
 | |
| 
 | |
| ?>
 |