website design - website templates - online systems - consultancy
.tech tips
.latest projects
.biz blog

Scripts

Pelco Consulting has written many different applications and utilities over the years and some of these are somewhat basic tools that we simply want to share and make available for you to use.

All code snippets here are free to use and modify however if you are using it for commercial purposes, we do request that you place a link on your website to us, even if it is on your links page.

If you have any pieces of code you believe would be worthy of sharing, be sure to contact us.

 

Country Code to Currency Symbol and Currency Word

Pelco Consulting has written a series of system fir a variety of clients. One of those clients required a drop menu selection early in a multi-page form with the country selection then providing the currency symbol and the currency as a word for later usage in the site.

The code was initially written as a series of foreach matches however version 2 sees this replaced by matching via the 'in_array' function in conjunction with a large switch process for all of the single country code.

Included in this download is a select form field that contains all of the country codes to match with the function.

This script is free to use and modify as needed. If you do make use of this code, please ensure you place a link on your website back to us somewhere, even if it is only one small page that doesn't see much traffic.

   
Banner
© Copyright 2010 - 2012 Pelco Consulting.