Книги автора: Fedora™ Unleashed, 2008 edition
/ Книги автора: Fedora™ Unleashed, 2008 edition
/ honorato bonafe
Книга: Fedora™ Unleashed, 2008 edition
for
for
The for
construct performs a statement (block of code) for a set of conditions defined as follows:
for (start condition; end condition; increment function) {
statement(s)
}
The start condition is set at the beginning of the loop. Each time the loop is executed, the increment function is performed until the end condition is achieved. This looks much like the traditional for/next
loop. The following code is an example of a for
loop:
for ($i=1; $i<=10; $i++) {
print "$in"
}
Оглавление статьи/книги
Похожие страницы
- Forced writes - палка о двух концах
- Forced Writes
- Chapter 15. Graphical User Interfaces for Iptables
- What NAT is used for and basic terms and expressions
- Information request
- SCTP Generic header format
- System tools used for debugging
- FORWARD chain
- How to use this License for your documents
- 1. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- Оператор цикла foreach
- Foreword