Test Your Knowledge

  1. What actual underlying values are represented by TRUE and FALSE?

  2. What are the simplest two forms of expressions?

  3. What is the difference between unary, binary, and ternary operators?

  4. What is the best way to force your own operator precedence?

  5. What is meant by operator associativity?

  6. When would you use the === (identity) operator?

  7. Name the three conditional statement types.

  8. What command can you use to skip the current iteration of a loop and move on to the next one?

  9. Why is a for loop more powerful than a while loop?

  10. How do if and while statements interpret conditional expressions of different data types?

See Chapter 4 Answers in Appendix A for the answers to these questions.

Get Learning PHP, MySQL, JavaScript, and CSS, 2nd Edition 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.