php shopping cart
free shopping cart   shopping cart software

Free Shopping Cart PHP Software

afc_format_number

Back to Functions List
This Function Has Been Available Since:
(AFCommerce v 2.1,     Functions v 1.1)

Formats an amount of money in to a currency.

Description

string = afc_format_number (amount, currency)

This function formats the amount of money passed to this function, in to the currency passed in the second parameter. This function uses the information from the "currencies" database table. This function DOES NOT convert amounts from one currency to another, it simply prints the amount to look like that amount of money in the specified currency.


Parameters

amount (string) - The amount of money. This can obviously be a number with decimal places, but it may be NUMBERS ONLY, and no special characters like commas or dollar symbols. (a decimal point is considered part of the number and is therefore allowed.

currency (string) - The 3 letter currency code.

Return Values

Returns a string with the amount, formatted in the proper currency with all symbols included.

Open Source: No

Paul's Examples


There are currently no examples for this function.



Back to Functions List




afc_format_number

There are currently no posts for this topic.











AFCommerce Documentation


High End Website DevelopmentCompletely Free
Dating Service
Copyright 2004 - 2006
www.afcommerce.com
AFCommerce Website
And Cart Builder