/** * It's a kind of magic print. * * This function doesn't use money_format() and doesn't use regional options. * It will always print the money in same format: "10000.00 USD" * * @return string */ public function __toString() { return number_format($this->getAmount(), $this->currency->getPrecision(), ".", "") . " " . $this->currency->__toString(); }