Weekly Materials - Week 3
Chapter 2: Functions and Control Structures
- Use functions to organize your PHP code
- Describe variable scope
- Make decisions using if, if…else, and switch statements
- Repeatedly execute code using while, do…while, for, and foreach statements
- Utilize include and require statements
Assignments and Due Dates: View
CS2623 Coding Standards - requirements for all class assignments
PHP Programming with MySQL //Second Edition by Don Gosselin, et al
Chapter 2 - Functions and Control Structures
Text Resources
Errata Sheet
Best Practices
- Video: Lynda.com:
- PHP with MySQL Essential Training by Kevin Skoglund
- 6. Control Structures: Logical Expressions (All videos)
- 7. Control Structures: Loops
(All except Understanding Array Pointers. Note: the foreach will be covered again later in the chapter on arrays) - 8: User-Defined Functions (All videos)
- PHP with MySQL Beyond the Basics by Kevin Skoglund
- 2. Intermediate PHP Techniques (three videos)
- Making a reference assignment
- Using references as function arguments
- Using references as function return values (more detail than the text on p. 80)
- PHP with MySQL Essential Training by Kevin Skoglund
- 10. Building Web Pages
- Including and Requiring pages
- 2. Using Server Side Includes for Common Page Elements
- Deciding which includes to use
- Solution: Moving common elements to include files
- Making sure internal links still work in an include file
- 10. Building Web Pages
- PHP with MySQL Essential Training by Kevin Skoglund
Same software as previously indicated.
Chapter 2: Review Questions (.rtf file)
Test 1: Review Sheet
SSP03: Control Structures (Complete, upload to Apollo1, then submit URL in the LMS)
Weekly Quiz: Chapter 2 (Located in the LMS)