File: index.php

Recommend this page to a friend!
  Classes of Ettore Moretti  >  PHP Currency Converter  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Currency Converter
Convert amounts between currencies using Yahoo API
Author: By
Last change:
Date: 5 years ago
Size: 344 bytes
 

Contents

Class file image Download
<?php
require_once 'Pcc/Pcc.php';

$arrayToConvert=[
                    [
"EUR","USa",150.12],
                    [
"EUR","USD",150.12],
                    [
"USD","EUR",150.12],
                    [
"EUR","JPY",150.12]
                ];

$Converter = Pcc::convert($arrayToConvert);
 

echo
"<pre><h1>Array Input:<br/></h1>";
print_r($arrayToConvert);
print_r("<h1>Array Output:<br/></h1>");
print_r($Converter);
 


For more information send a message to info at phpclasses dot org.