Randomize array values

<?php
/**
* function randomArray (array $array)
*
* Randomize array values
*
* Example:
*
* $array = array(‘value1′,’value2′,’value3′,’value4’);
*
* $random = randomArray($array);
*
* retu

Human readable file size

<?php
/**
* function humanSize (integer $size)
*
* Receive the file size in bytes and return the human readable value (B, KB, MB)
*
* Example:
*
* echo humanSize(filesize(__FILE__));
*
* ret

Monthly Content Sorting

[url=http://wisnercanoes.com/node/2]Example[/url]

<?php

/*
* This script makes a list of content for each month and puts the current month first, and then lists the months coming up.
* It i

Text URL to HTML

<?php
function to_link($string){
return preg_replace("~(http|https|ftp|ftps)://(.*?)(\s|\n|[,.?!](\s|\n)|$)~", ‘<a href="$1://$2">$1://$2</a>$3’,$string);
}

$html = ‘This line of text has three

Powered by Gewgley