13 Modern PHP Tips & Tricks from 2015

13 Modern PHP Tips & Tricks from 2015

13 Modern PHP Tips & Tricks from 2015 PHP has undergone a massive transformation over the last decade. If you’re still writing PHP like it’s 2015, you’re missing out on massive performance gains, cleaner syntax, and better security. I ran into a nice blog post 13 PHP Tips That Make Development Faster from Linet M. […]

setlocale() and Its Six Personalities

setlocale() and Its Six Personalities What does setlocale() actually do? It changes the date format, right? It’s a fair guess, and it’s wrong in an interesting way: setlocale() doesn’t touch one behavior, it touches six, and most of them have nothing to do with dates. Under the hood it’s a thin wrapper around the C […]

A story of compact() and extract()

A story of compact() and extract() Compact() and extract() are two sides of the same coin. They are also a good part of the PHP story, with their close cousins, the variable variables. Let’s review the usage of compact() and extract() and see how they can make it into the future of PHP. From variables […]

The Land Where PHP Uses eval()

The Land Where PHP Uses eval() It is 2018, and the PHP world useseval() in more than 28% of every PHP code source. It is repeatedly reported as a security issue and a performance bottleneck, and a memory hazard. Yet, we can’t get rid of it. It seems reasonable to think that most of eval […]