sitepoint_day4_php live lesson 4 _php language_

3
Become a better web developer. Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help You are logged in as: adminloozer x SitePoint Courses > PHP Live > PHP Language Back to the dashboard Lesson 4: PHP Language Today we’ll dig a little deeper into the PHP language, to see how you can control which of your statements are actually executed, and how often. Today’s Tasks Watch a video: Welcome to PHP Live Lesson 4 1. Download today’s code: day4code.zip (18KB) 2. Read an article: PHP Conditional Statements PHP, just like any other programming language, provides facilities that enable you to affect the flow of control. That is, the language contains special statements that you can use to deviate from the one-after-another execution order that has dominated our examples so far. Such statements are called control structures. The most basic, and most often used, control structure is the if statement. 3. Read an article: PHP Loops There are two kinds of loops in PHP: while loops and for loops. Loops, like conditional statements, give you control over whether or not a group of statements is executed, but in addition you get to control how many times they are executed. 4. Watch a video: Hiding the Seams 5. Lessons Week 1 Lesson 1: PHP & MySQL Lesson 2: Your First Database Lesson 3: Introducing PHP Lesson 4: PHP Language Lesson 5: Recorded Q&A Week 2 Lesson 6: Displaying MySQL Content Lesson 7: Adding and Removing Content with PHP Lesson 8: Database Design: Multi-table Queries Lesson 9: Database Design: Complex Relationships Lesson 10: Recorded Q&A Week 3 Lesson 11: Structured PHP Programming Lesson 12: A Content Management System (#1) Lesson 13: A Content Management System (#2) Lesson 14: Sessions and Access Control Lesson 15: Recorded Q&A Back to the dashboard Search this site PHP Live Lesson 4 "PHP Language" http://courses.sitepoint.com/php-live/lesson/4 1 sur 3 14/12/2010 15:03

Upload: michel-lecomte

Post on 25-Mar-2016

213 views

Category:

Documents


1 download

DESCRIPTION

Become a better web developer. Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help Lesson 1: PHP & MySQL Lesson 2: Your First Database Lesson 3: Introducing PHP Lesson 4: PHP Language Lesson 5: Recorded Q&A Week 1 Week 2 Week 3 Watch a video: Welcome to PHP Live Lesson 4 Watch a video: Hiding the Seams Download today’s code: day4code.zip (18KB) Read an article: PHP Loops Read an article: PHP Conditional Statements You are logged in as: Lessons 4. 5. 1. 2.

TRANSCRIPT

Page 1: Sitepoint_Day4_PHP Live Lesson 4 _PHP Language_

Become a better web developer.

Home Products Courses Forums Blogs Podcast Articles Reference Marketplace Help

You are logged in as:

adminloozer x

SitePoint Courses > PHP Live > PHP Language

← Back to the dashboard

Lesson 4: PHP Language

Today we’ll dig a little deeper into the PHP language, to see how you can control which

of your statements are actually executed, and how often.

Today’s Tasks

Watch a video: Welcome to PHP Live Lesson 41.

Download today’s code: day4code.zip (18KB)2.

Read an article: PHP Conditional Statements

PHP, just like any other programming language, provides facilities that enable you to

affect the flow of control. That is, the language contains special statements that you

can use to deviate from the one-after-another execution order that has dominated

our examples so far. Such statements are called control structures. The most basic,

and most often used, control structure is the if statement.

3.

Read an article: PHP Loops

There are two kinds of loops in PHP: while loops and for loops. Loops, like

conditional statements, give you control over whether or not a group of statements

is executed, but in addition you get to control how many times they are executed.

4.

Watch a video: Hiding the Seams5.

Lessons

Week 1Lesson 1: PHP & MySQL

Lesson 2: Your First Database

Lesson 3: Introducing PHP

Lesson 4: PHP Language

Lesson 5: Recorded Q&A

Week 2Lesson 6: Displaying MySQL Content

Lesson 7: Adding and Removing

Content with PHP

Lesson 8: Database Design: Multi-table

Queries

Lesson 9: Database Design: Complex

Relationships

Lesson 10: Recorded Q&A

Week 3Lesson 11: Structured PHP

Programming

Lesson 12: A Content Management

System (#1)

Lesson 13: A Content Management

System (#2)

Lesson 14: Sessions and Access

Control

Lesson 15: Recorded Q&A

Back to the dashboard

Search this site

PHP Live Lesson 4 "PHP Language" http://courses.sitepoint.com/php-live/lesson/4

1 sur 3 14/12/2010 15:03

Page 2: Sitepoint_Day4_PHP Live Lesson 4 _PHP Language_

Watch a video: PHP Templates6.

Read an article: Controllers and Templates

What’s nice about using include statements to load your PHP template files is that

you can have multiple include statements in a single PHP script, and have it display

different templates under different circumstances!

7.

Join a Discussion: Any questions?

We covered a ton of stuff today; no doubt you found some detail or other confusing.

Hop into the private course forum and post your questions, so that I can be sure to

cover any common points of confusion in tomorrow’s Live Q&A.

8.

That’s all for Lesson 4! Next up is Recorded Q&A.

All done for this lesson? Tell the world via Twitter!

I’ve completed this lesson.

Leave more feedback for the

instructor:

Have a question about this lesson?

Visit the forum

Need help with your account? Email

the team

PHP Live Lesson 4 "PHP Language" http://courses.sitepoint.com/php-live/lesson/4

2 sur 3 14/12/2010 15:03

Page 3: Sitepoint_Day4_PHP Live Lesson 4 _PHP Language_

Web Design & Development by SitePoint Solutions, Melbourne, Australia | Logo Design, Web page Design: 99designs.com Back to top

PHP Live Lesson 4 "PHP Language" http://courses.sitepoint.com/php-live/lesson/4

3 sur 3 14/12/2010 15:03