I have an associative array called "$infoDivs". I want to do something like the following:
$var = $var . $infoDivs[value1] . $infoDivs[value2];
The problem is, that the array has over 20 values, and is liable to get more at any point.
I would like to just say
$var = $var . ALL VALUES OF $infoDivs;
I would like PHP to do this () for me, I'm thinking that I could use a loop, but I'm not very good at them 🙁🙁🙁...
How should I go about doing this?