I have an array of name like this
let arrayOfName = ["alex","lonzo","lavar"]
and sometimes my array only has 1 element but it will never be empty
let arrayOfName = ["lavar"]
is there a way that I can display all the names in this string format? For example in the 1st case:
"studentName=alex&studentName=lonzo&studentName=lavar"
and for the 2nd case, it would be
"studentName=lavar"
Thank you very much for your help!
URLComponentsandURLQueryItem.