Welcome Guest, Not a member yet? Register   Sign In
Define/include "globally available" arrays and functions
#12

(This post was last modified: 06-06-2021, 06:35 AM by John_Betong.)

@tomsenner ,
Quote: Thank you. Is it ok to declare arrays as a constant? Was the file intended for that?
My array might even change at some point if we add more currencies.

Yes easy to increase and have umpteen new currencies. Also if created in index.php it is globally available same as APPPATH, FCPATH, ROOTPATH, etc

Edit
Why not create a database table from the following CSV file:

https://github.com/datasets/currency-cod...es-all.csv
Reply


Messages In This Thread
RE: Define/include "globally available" arrays and functions - by John_Betong - 06-06-2021, 06:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB