X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=misc.php;h=b18abd43b9f62aeeebf3cac3a7408705aa3af1c4;hb=c4575213df3077d1b9956dd12132f13ba7567970;hp=857f6db9e8c5b413e24ccb87f2a5bae54b594564;hpb=28ea182162da1c22d16f93bc2cb5619c14e222a7;p=wfpl.git diff --git a/misc.php b/misc.php index 857f6db..b18abd4 100644 --- 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]; +} + ?>