+ 1

What to do when you need a function's parameters to be dynamic.

I want to write a function where I am not quite sure about the ammount of string params I want to pass in. Is this even possible? Let's say the function is to create users and the params consist of name, age, and occupation - how would I write this so that it is dynamic and xreate as many users as needed

26th Jan 2017, 1:30 PM
J.A.
1 ответ
+ 2
a loop is what you are looking for
26th Jan 2017, 1:50 PM
jay
jay - avatar