11 lines
177 B
PHP
Executable file
11 lines
177 B
PHP
Executable file
<?php
|
|
|
|
namespace b8\View\Helper;
|
|
|
|
class Format
|
|
{
|
|
public function Currency($number, $symbol = true)
|
|
{
|
|
return ($symbol ? '£' : '') . number_format($number, 2, '.', ',');
|
|
}
|
|
} |