Skip to content

Instantly share code, notes, and snippets.

View mabena's full-sized avatar

DAUD ABASS MABENA mabena

  • NACTE
  • DAR ES SALAAM
View GitHub Profile
<?php
/**
* Return a human-readable date (e.g. April 4, 1968) given a unix timestamp.
*/
function unix_timestamp_to_human_readable_date( $unix_timestamp ) {
return date( 'F dS Y', $unix_timestamp );
}
/**
* Output the date of an expectation.
<?php
/**
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner.
* @author Joost van Veen
* @version 1.0
*/
if (!function_exists('dump')) {
function dump ($var, $label = 'Dump', $echo = TRUE)
{
// Store dump in variable