<?php
/**
* QuickSkin Extension stringformat
* Inserts a formatted String
*
* Usage Example:
* Content: $template->assign('SUM', 25);
* Template: Current balance: {stringformat:SUM,'$ %01.2f'}
* Result: Current balance: $ 25.00
*
* @author Andy Prevost hide@address.com - original by Philipp v. Criegern hide@address.com
*/
function qx_stringformat ( $param, $format ) {
return sprintf( $format, $param );
}
?>