php_mysql_apache [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

php_mysql_apache [Electronic resources] - نسخه متنی

Julie C. Meloni

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید








Chapter 5. Flow Control Functions in PHP


The scripts created in the last chapter flow only in a single direction. The same statements are executed in the same order every time a script is run. This does not allow for much flexibility.

You will now look at some structures that enable your scripts to adapt to circumstances. In this chapter, you will learn

  • How to use the if statement to execute code if a test expression evaluates to true

  • How to execute alternative blocks of code when the test expression of an if statement evaluates to false

  • How to use the switch statement to execute code based on the value returned by a test expression

  • How to repeat execution of code using a while statement

  • How to use for statements to make neater loops

  • How to break out of loops

  • How to nest one loop within another

  • How to use PHP start and end tags within control structures



/ 323