I had this come up a little while ago, where i only wanted the last X number of array items in a join statement.

joins a join($array,"-",-4) would have been better than this....

Code:

Function reversejoin($array,$d,$n)
If UBound($array)-$n > -1
For $N = UBound($array)-$n To UBound($array)
$reversejoin = "" + $reversejoin + $d + $array[$N]
Next
Else
$reversejoin = Join($array,$d)
EndIf
If SubSTR($reversejoin,1,1) = $d $reversejoin = SubSTR($reversejoin,2) EndIf
EndFunction