Test Your Knowledge: Questions

Question 12-1

Name three benefits of using a templating system such as Smarty.

Question 12-2

How does a PHP program pass a variable to a Smarty template?

Question 12-3

How does a Smarty template access a variable that has been passed to it?

Question 12-4

What Smarty programming tag is used to iterate through an array?

Question 12-5

How do you enable Smarty templating in a PHP program?

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

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