change array size function


Sub toReDim(ByRef mAry, ByVal mVal)

    If isArray(mAry) Then
        ReDim Preserve mAry(mVal)
    Else
        ReDim mAry(mVal)
    End If

End Sub

Other PHP functions in the snippet extension