Forum Moderators: coopster
Example:
I have an array that has a list of cities. I would like to add the state to each of the cities in the array. I know I can use a loop to do this, but if there is a pre-built function, it would be good to know about...
Thanks!
you could use a foreach but it depends on what you are appending
is the array of states in an array with the same number of elements?
where are the states coming from?
if they are from db you could select them and put them into the array at the same time as everything else.
hehe, didn't realize I got confused ;)
I can't really think of one in particular that might work, the loop should be fine.