Chapter 21 More about Flowcharts with Decision Control Structures
21.1 Introduction
By working through the previous chapters, you've become familiar with all the decision control structures. Since flowcharts are an ideal way to learn “Algorithmic Thinking” and to help you better understand specific control structures, this chapter is dedicated to teaching you how to convert a PHP script to a flowchart, or a flowchart to a PHP script.
21.2 Converting PHP scripts to Flowcharts
To convert a PHP script to its corresponding flowchart, you need to recall all the decision control structures and their corresponding flowchart fragments. They are all summarized here.
The single-alternative decision structure
The dual-alternative decision structure
Get PHP and Algorithmic Thinking for the Complete Beginner now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.