How can i make an empty array and add variables later?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i make an empty array and add variables later??

4th Aug 2019, 1:43 PM
emad
emad - avatar
2 Answers
+ 1
Look at the code. Hope it helps you 😉 https://code.sololearn.com/wUDsp5sW95cT/?ref=app
4th Aug 2019, 1:50 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
You may just declare empty array as $var = []; And then you can push some data into it
4th Aug 2019, 3:00 PM
Timur Myngbay
Timur Myngbay - avatar