repo.or.cz
/
sandbox.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Create new standard layout using 960 Grid System
[sandbox.git]
/
sb1
/
whileloops.php
blob
9febf7f55dd33522d2db2c0d2873d9603e92a044
1
<
html
>
2
<
head
>
3
<
title
>
Loops
:
while
</
title
>
4
</
head
>
5
<
body
>
6
<
?php
7
$count
=
0
;
8
while
(
$count
<=
10
) {
9
echo
$count
.
", "
;
10
$count
++
;
11
}
12
echo
"<br />Count: {
$count
}"
;
13
?
>
14
<
br
/>
15
<
?php
16
$count
=
0
;
17
while
(
$count
<=
10
) {
18
if
(
$count
==
5
) {
19
echo
"FIVE"
;
20
}
21
else
{
22
echo
$count
.
", "
;
23
}
24
$count
++
;
25
}
26
echo
"<br />Count: {
$count
}"
;
27
?
>
28
</
body
>
29
</
html
>