{ PHP snippets }

Did you know you may also pass `null` as a function typed parameter value in #PHP, even though the type is not marked nullable with `?` All parameters with a default value of `null` may receive `null` as a value. https://t.co/mdbqXprZag

PHP
Paul Redmond ??

Paul Redmond ?? @paulredmond

? If you're application is behind a proxy/load balancer, you can force HTTPS at the web server level by checking the X-Forwarded-Proto header https://t.co/oomJNOWNUe

PHP
Jason McCreary

Jason McCreary @gonedark

? Pushing yourself to remove comments is one of the best drivers towards clean code. Here's a few tips on how to spot and replace comments that may be unnecessary… https://t.co/STIK6AIKXt

PHP
Frank de Jonge

Frank de Jonge @frankdejonge

Small #PHP tip: Want to before sure multiple keys of an array are set? Define them in one isset() call, it's so much clearer! if ( ! isset($a['q']) || ! isset($a['w']) || ! isset($a['e'])) { // PANIC } # Becomes if ( ! isset($a['q'], $a['w'], $a['e'])) { // OH NO! }

PHP