Workshop

Quiz

1: Which header should you send to the browser before building and outputting a PNG image?
2: Which function could you use to acquire an image resource that you can use with other image functions?
3: Which function would you use to output your PNG after building it?
4: Which function could you use to acquire a color resource?
5: With which function would you draw a line on a dynamic image?
6: Which function would you use to fill an area in a dynamic image?
7: Which function might you use to draw an arc?
8: How might you draw a rectangle?
9: How would you draw a polygon?
10: Which function would you use to write a string to a dynamic image?

Answers

A1: To output a PNG image, you should use the header() function to send the line ...

Get Sams Teach Yourself PHP in 24 Hours, Third 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.