Source: Chicago PHP User Group

Never* Use Arrays

PHP loves its arrays. Arrays are the uber-data structure. They're a list, a map, a stack, a queue, everything in one! Which is the problem.

Modern PHP grossly over-uses arrays. In most cases there are better options today, and when you find yourself reaching for "oh I'll just make this an associative array", stop. An extra 60 seconds of thought and code will often give you a more readable, faster, more memory-efficient, more flexible alternative. Classes, iterables, and collections can and should replace arrays in most of your day to day coding.

This talk will go through what PHP arrays actually are (hint: they are not, in fact, arrays at all), why they're so problematic, and what to do instead. By the end, you should find yourself (almost) never reaching for arrays to solve a problem.

Speaker: Larry Garfield

Sponsor: https://www.neighborhoods.com

Schedule:

6:30 - 6:45 :: Food and Introduction

6:45 - 7:45 :: Main Presentation

7:45 - 8:00 :: Q&A and Networking

Food and drinks are always provided!

If you're interested in submitting a talk: https://bit.ly/CPUG-Submit-Talk

Or find us on social media

Twitter: https://twitter.com/ChiPHPUG

YouTube: https://www.youtube.com/channel/UCtHdoeMTqd8V-P4h2PGFiZQ/

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Community Partners