Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Money.php
Go to the documentation of this file.
1 <?php
7 
8 class Money implements \Zend_Filter_Interface
9 {
13  protected $_format;
14 
18  public function __construct($format)
19  {
20  $this->_format = $format;
21  }
22 
27  public function filter($value)
28  {
29  return money_format($this->_format, $value);
30  }
31 }
$value
Definition: gender.phtml:16
$format
Definition: list.phtml:12