![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 52 Pomógł: 0 Dołączył: 1.03.2005 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Przecież masz to w manualu opisane :/
http://pl2.php.net/manual/en/control-structures.if.php Cytat Often you'd want to have more than one statement to be executed conditionally. Of course, there's no need to wrap each statement with an if clause. Instead, you can group several statements into a statement group. For example, this code would display a is bigger than b if $a is bigger than $b, and would then assign the value of $a into $b:
<?php if ($a > $b) { echo "a is bigger than b"; $b = $a; } ?> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 6.10.2025 - 22:34 |