{ PHP snippets }

Chris Fidao

Chris Fidao @fideloper

? Don't forget to index timestamp columns like "created_at" if you query against them. e.g.: ORDER BY created_at e.g.: WHERE published_at <= NOW() https://t.co/z8Jt4xMQTj

Jason McCreary

Jason McCreary @gonedark

A few ways to clean up the conditional code that forms most of your codebase. From simple to nested to spotting unnecessary conditions. ? https://t.co/qGVaDl3TKt

Laravel Shots

Laravel Shots @LaravelShots

TIL : "break" & "continue" accept arguments too. while (true) { while (true) { break 2; // break both loops } } echo "Hey";

J.T. Grimes?

J.T. Grimes? @JT_Grimes

A friendly reminder for PHP devs: putting composer install in your post-checkout hooks will save you from wasting time on stupid problems.