What parameters to use in the currency data field?

Hello UNA Team

I am about to add new Currencies in my system through:

Developer App > Forms > Data Items > System > Currency

and

Developer App > Forms > Data Items > Payment > Currency.

In Developer App > Forms > Data Items > System > Currency (sys_form_pre_values table), the currency data field has the following values:

AUD: a:1:{s:4:"sign";s:6:"A$";}

CAD: a:1:{s:4:"sign";s:6:"C$";}

EUR: a:1:{s:4:"sign";s:7:"€";}

GBP: a:1:{s:4:"sign";s:6:"£";}

USD: a:1:{s:4:"sign";s:5:"$";}

YEN: a:1:{s:4:"sign";s:6:"¥";}

So, my first question is: what is the meaning of: s:4 and s:6, s:5, s:7 in the currency data and what are they for?

As you can see, some Currency data use: s:6, others use: s:5 and s:7.

My second question is: when adding new currencies like: NZD, BRL, INR and ZAR, what parameters should I use for their data: s:6, s:5 or s:7 ?

Example:

a:1:{s:4:"sign";s:6:"NZ$";}

or

a:1:{s:4:"sign";s:5:"NZ$";}

or

a:1:{s:4:"sign";s:7:"NZ$";}

Thanks for advising.

  • 500
  • More
Replies (10)
    Login or Join to comment.