PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP Format Date and Byte Count   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Format Date and Byte Count
Display timestamps and bytes in a readable form
Author: By
Last change:
Date: 5 years ago
Size: 140 bytes


Class file image Download

require_once 'class/Formats.php';

/* Opcache */
$formats = new Formats();

//Usage example
echo $formats->friendlyTime(1541151468);