PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Tareq Hasan   Bangla Date Converter   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example to use the class
Class: Bangla Date Converter
Convert dates to Bangla format
Author: By
Last change:
Date: 14 years ago
Size: 343 bytes
 

Contents

Class file image Download
<?php
include_once 'class.banglaDate.php';
$bn = new BanglaDate(time());
print_r($bn->get_date());
echo
'<br>';
$bn->set_time(time(), 0);
print_r($bn->get_date());

echo
'<br>';
$bn->set_time(strtotime('18-03-1988'), 0);
print_r($bn->get_date());

echo
'<br>';
$bn->set_time(strtotime('18-03-1988'), 6);
print_r($bn->get_date());