Skip to content

Instantly share code, notes, and snippets.

@Orkin
Created January 24, 2013 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Orkin/91d14749cb799c08392f to your computer and use it in GitHub Desktop.
Save Orkin/91d14749cb799c08392f to your computer and use it in GitHub Desktop.
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of PriceFormat
*
* @author Orkin
*/
namespace Application\View\Helper;
use Zend\View\Helper\AbstractHelper;
class PriceFormat extends AbstractHelper {
function __invoke($price) {
return number_format($price, 0, '.', ' ');
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment