Location: PHPKode > projects > QuickSkin > QuickSkin_v5.0/_lib/qx/qx_stringformat.php
<?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 );
  }

?>
Return current item: QuickSkin