PHP Quick Tip: When to use the alternative syntax

1 min read php

This video is ultimately in response to a tweet Harry Roberts posted earlier this week, whereby he said he disliked the PHP alternative syntax for control structures. I responded rather unhelpfully to Harry’s tweet so figured I should show you all how I use the alternative structure.

Truth be told, I must thank Harry, I’ve been wanting to talk about this for a long while.