Get function arguments from array