From a2a404f1daca791b0345ce76de3b3fcbd26d3004 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 4 Nov 2010 03:10:47 +1100 Subject: Cleaned functions. Added room for image aspect ratio. Implemented soon. --- inc/functions.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inc/functions.php') diff --git a/inc/functions.php b/inc/functions.php index 0c14ee18..1409c7b1 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -222,6 +222,11 @@ return array ( $nameo ); } } + + function fraction($numerator, $denominator, $sep) { + $fraction = Array($numerator, $denominator); + return "{$fraction[0]}{$sep}{$fraction[1]}"; + } /*********************************************/ /* Fonction: imagecreatefrombmp */ -- cgit v1.3