FREN

#FF00AA


22 mar. 2024

💭 If PHP 8 is removing while(each()) because it's inefficient compared to foreach(), why is PDO still making us iterating through results with a while(fetch())?

💭 Wait a second, I should check before posting…

🗣️ WTF you can do a foreach() directly on the PDOStatement and no one ever told me! Actually, judging from a quick Google search, it seems like no one knows.

Want to know when I post new content to my blog? It's a simple as registering for free to an RSS aggregator (Feedly, NewsBlur, Inoreader, …) and adding www.ff00aa.com to your feeds (or www.garoo.net if you want to subscribe to all my topics). We don't need newsletters, and we don't need Twitter; RSS still exists.

Legal information: This blog is hosted par OVH, 2 rue Kellermann, 59100 Roubaix, France, www.ovhcloud.com.

Personal data about this blog's readers are not used nor transmitted to third-parties. Comment authors can request their deletion by e-mail.

All contents © the author or quoted under fair use.