JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* New template system.
[wfpl.git] / misc.php
index 857f6db..b18abd4 100644 (file)
--- a/misc.php
+++ b/misc.php
@@ -126,4 +126,8 @@ function ref(&$foo) {
        return new stupid_reference($foo);
 }
 
+function &last(&$array) {
+       if(count($array)) return $array[count($array) - 1];
+}
+
 ?>