Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- Class CurrencySymbol extends DataExtension {
- public function SymbolNice() {
- $val = number_format(abs($this->owner->value) . $this->owner->config()->currency_symbol, 2);
- if($this->owner->value < 0) return "($val)";
- else return $val;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement