Új hozzászólás Aktív témák
-
Sk8erPeter
nagyúr
válasz
Sk8erPeter
#6120
üzenetére
Ja jó, most látom, hogy itt épp az a lényeg, hogy pl. egy tömb minden elemének megváltoztatása esetén milyen rossz eredmények tudnak kijönni a foreach ciklusra a forral szemben, lásd Conclusion:
"Conclusion:
Proof in this example shows how functionally murderous the foreach() loop can be."DE ez a modify loop-ra vonatkozott.
Van viszont read loop, ahol gyorsabb a for ciklus."Conclusion:
In all cases I've found that the foreach loop is substantially faster than both the while() and for() loop procedures. One thing to note is that when using an entire loop from the start it's extremely good to use the reset() function in all examples."Érdekes eredmények jönnek ki egyébként minden frissítésnél, pl. több frissítés után már az idézőjel vs. aposztróf kérdés is megfordult.
"Is a there a difference in using double (") and single (') quotes for strings. Call 1'000x
[...]
Conclusion:
In today's versions of PHP it looks like this argument has been satisfied on both sides of the line. Lets all join together in harmony in this one!"
Új hozzászólás Aktív témák
- Budget Gamer - i5-3570 / GTX 1050 2GB / 8GB DDR3 / 128GB SSD
- Eladó Workstation - Lenovo P15S gen2 (11.gen Core I7 32Gb DDR4 1 Tb SSD 4Gb Nvidia)
- Budget Gamer - i5-3570K / RX470 4GB / 16GB DDR3 / 256GB SSD
- PS5 dobozában (2025.09-ben vásárolt) 2 év gar, számla!
- Titan Forge Gamer - Xeon E5-2689 / RX570 4GB / 32GB DDR3 / 1TB SSD
- Lenovo ThinkPad X13 Gen 3 i5-12. gen-16GB DDR5 RAM 256GB SSD FHD+ gari. 4g modem Érintőkijelző
- 2019 MacBook Air Retina 13" i5 8GB 128GB Rose Gold
- Lenovo ThinkPad T15 Gen 2 i5-1135G7 16GB Ram 256 GB SSD FHD IPS Garancia
- Lenovo ThinkPad T14S Gen1 Ryzen5 4650U Refurbished - Garancia
- Lenovo ThinkPad L13 Gen 3 13,3" - i3 1215U, 8GB RAM, SSD, jó akku, Thunderbolt 4 - számla, 6 hó gar
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest
