PHP Classes
elePHPant
Icontem

File: cz_course_test.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Michal Vrchota  >  Czech Course  >  cz_course_test.php  >  Download  
File: cz_course_test.php
Role: Example script
Content type: text/plain
Description: test class
Class: Czech Course
Get the conversion rates to the Czech currency
Author: By
Last change: test file modified for new class
Date: 7 years ago
Size: 387 bytes
 

Contents

Class file image Download
<?php

require_once 'CzechCourse.php'

$courses = new CzechCourse(StrToTime('-3 days'));
$course = $courses->getCourse('EUR');

echo
"Course from ".Date("j.n.Y", $course->getTime()).": ";
echo
$course->getAmount(). "x ";
echo
$course->getCurrency(). " ";
echo
" = ";
echo
$course->getCourse(). " ";
echo
" CZK ";
echo
"(".$course->getPercentDifferenceAsString().")";

?>