diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-04 03:10:47 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-04 03:10:47 +1100 |
| commit | a2a404f1daca791b0345ce76de3b3fcbd26d3004 (patch) | |
| tree | 2895a44d87b27609c9ea1e8a3ff4a54e122400c4 /inc/functions.php | |
| parent | 1e201212242c758a4d797711388aa566542224f4 (diff) | |
Cleaned functions.
Added room for image aspect ratio. Implemented soon.
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 5 |
1 files changed, 5 insertions, 0 deletions
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 */ |
