Sometimes, the checks in code are so complex, that we have to write very sophisticated conditionals that have lots of conditional expressions. One might say that this is a bad practice. Maybe - but in some cases this is an inevitable evil. The main question is to format it.
Recently, on one of Discord servers an example of how to reverse a string in PHP was posted. Because the example was presented as a production code example, let's take a look and discuss it. Looking ahead, that wasn’t the best example.