Timeline for PHP: when to use arrays, and when to use objects for mostly-data-storing code constructs?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 21, 2017 at 11:31 | comment | added | Josh | Agreed. I think that was a snippet of a much larger application that needed the reference for a reason, or something... | |
Sep 21, 2017 at 11:30 | history | edited | Josh | CC BY-SA 3.0 |
deleted 1 character in body
|
Jan 12, 2017 at 2:06 | comment | added | Chinoto Vokro |
You are not changing the elements of my_lineitems , so getting them by reference is unnecessary, especially since variables only hold an identifier to the object, not the object itself. php.net/manual/en/language.oop5.references.php
|
|
Sep 14, 2015 at 14:42 | vote | accept | Dennis | ||
Sep 14, 2015 at 14:41 | vote | accept | Dennis | ||
Sep 14, 2015 at 14:41 | |||||
Sep 12, 2015 at 21:07 | history | answered | Josh | CC BY-SA 3.0 |