PHP Classes

File: przyklad.php

Recommend this page to a friend!
  Classes of Rafal Antczak   Say PHP PLN Converter   przyklad.php   Download  
File: przyklad.php
Role: Example script
Content type: text/plain
Description: Example of class usage
Class: Say PHP PLN Converter
Spell amounts of the zloty currency in Polish text
Author: By
Last change: Wersja 2
Date: 5 years ago
Size: 266 bytes
 

Contents

Class file image Download
<?php

   
include 'SayPLN.class.php';

   
$amount = 9123.45; // kwota z?otych - liczbowo

   
$slownie = new SayPLN();

    echo
'Kwota: ' . str_replace('.', ',', $amount) . ' z?<br>';

    echo
'Slownie: ' . $slownie -> SlownieZlotych($amount);

?>