How can I store multiple values in $_SESSION in PHP and then display them using for loop on a table? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I store multiple values in $_SESSION in PHP and then display them using for loop on a table?

27th Aug 2022, 8:28 AM
Yishak Zewdineh
Yishak Zewdineh - avatar
6 Answers
27th Aug 2022, 11:07 AM
JaScript
JaScript - avatar
+ 2
No problem Yishak Zewdineh this shows the following example. By the way you can also create associative array of mixed types. https://code.sololearn.com/wP4od2iZ98SV/?ref=app
28th Aug 2022, 4:30 PM
JaScript
JaScript - avatar
+ 2
Yishak Zewdineh you are welcome.
29th Aug 2022, 1:08 PM
JaScript
JaScript - avatar
+ 1
Thank you JaScript, but what if I want to take input and store them in associative array instead of just using default initialized value?
28th Aug 2022, 12:29 PM
Yishak Zewdineh
Yishak Zewdineh - avatar
+ 1
Thank you very much JaScript
28th Aug 2022, 9:09 PM
Yishak Zewdineh
Yishak Zewdineh - avatar
0
https://www.sololearn.com/discuss/3077804/?ref=app What if I take inputs and store them in associative array, after that read them to display?
27th Aug 2022, 8:41 AM
Yishak Zewdineh
Yishak Zewdineh - avatar