Suppose there is a $ _SESSION ['name'] superglobal array. It contains the following data: GrishaMashaPasha Ie all in porridge. I need to read these names and write them in a new line. Those. to have 3 lines.
So I do this: I add the symbol ';' to each name it turns out with us
Гриша;Маша;Паша; Next, I divide the names I need function
explode(';',$_SESSION['name']) and run the cycle
foreach ($_SESSION['name'] as $value) { $peremennaya = '<tr>'.$value.'</tr>'; } And here the PROBLEM he displays to me only the last meaning i. Pasha And I need to display in the following form: Grisha Masha Pasha
Where is the mistake? I just need to write the values in the new lines from the session!