Uploader
An all around general purpose file uploader for CakePHP. Packaged as a stand alone plugin with file validation, file scanning and support for a wide range of basic mime types.
Get Age
Gets the age of an individual, based on a unix timestamp.
Function: getAge()
Category: PHP
Views: 1,251
Permalink -
Tinylink
/** * Gets the age of an individual * @param int $timeStamp * @return int */ function getAge($timeStamp) { $seconds = time() - strtotime($timeStamp); $year = 31536000; return floor($seconds / $year); }