Education Station:
Decorating Your Code

By Chris Tankersley

Programming languages are vastly different when it comes to syntax. Some may look so similar that they create an entire family of languages, just like real-world languages. PHP belongs to what is known as the C-style family, which constitutes languages that use curly brackets for flow control and ignore whitespace. Python does not belong to this family, as it uses indentation for flow control and pays attention to whitespace.

This article was originally published in the July 2021 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.

Leave a comment

Use the form below to leave a comment: