Skip to content

Instantly share code, notes, and snippets.

View mleonardgo's full-sized avatar

codencreate mleonardgo

View GitHub Profile
@mleonardgo
mleonardgo / CurrencyConverter.php
Created November 24, 2017 15:51 — forked from nomisoft/CurrencyConverter.php
PHP Currency Conversion Script
<?php
/*
* File: CurrencyConverter.php
* Author: Simon Jarvis
* Copyright: 2005 Simon Jarvis
* Date: 10/12/05
* Link: http://www.white-hat-web-design.co.uk/articles/php-currency-conversion.php
*
* This program is free software; you can redistribute it and/or
@mleonardgo
mleonardgo / currency_symbols.php
Created April 4, 2017 15:29 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',
@mleonardgo
mleonardgo / pdo-singleton-class.php
Created March 21, 2017 01:48 — forked from tony-landis/pdo-singleton-class.php
PHP PDO Singleton Class
<?php
/**
* PDO SINGLETON CLASS
*
* @author Tony Landis
* @link http://www.tonylandis.com
* @license Use how you like it, just please don't remove or alter this PHPDoc
*/
class sdb
@mleonardgo
mleonardgo / PDOConnection.php
Created March 21, 2017 01:34 — forked from rob-murray/PDOConnection.php
An class for a PHP PDO connection - a singleton implementation. An instance method returns a new PDO Connection with the specified connection attributes.
<?php
namespace ACompany\AnAppName\Dao\PdoImpl;
/**
* PDOConnection is a singleton implementation.
* getConnection() returning an instance of PDO connection.
*
* <code>
* Example usage: