Timeline for Is it necessary to declare PHP array before adding values with []?
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 3, 2020 at 0:37 | comment | added | James |
array() is empty array, the foreach will never do anything?
|
|
| Nov 23, 2011 at 17:14 | comment | added | Otar | Instead of pre-declaring $items variable you'll check existence a loop, that's all. | |
| Nov 23, 2011 at 17:10 | comment | added | BoltClock | What's the point of all of this? Seems much ado about literally nothing. | |
| Nov 23, 2011 at 17:06 | history | answered | Otar | CC BY-SA 3.0 |