![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 52 Pomógł: 0 Dołączył: 1.03.2005 Ostrzeżenie: (0%) ![]() ![]() |
Mam takie pytanie. Jaka jest różnica w takim zapytaniu:
a takim: ? Czy ta druga wersja jest poprawna? -------------------- (\.../)
(O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
|
|
![]()
Post
#2
|
|
![]() Grupa: Moderatorzy Postów: 36 557 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; } ?> -------------------- "Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista "Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer |
|
|
![]()
Post
#3
|
|
![]() Grupa: Zarejestrowani Postów: 314 Pomógł: 44 Dołączył: 12.11.2010 Skąd: UK Ostrzeżenie: (0%) ![]() ![]() |
Albo skrócony syntax if'a ... bardzo przydatny jeśli mamy zamiar tylko jedną rzecz umieścić .
Ten post edytował nekomata 23.08.2011, 07:21:50 |
|
|
![]()
Post
#4
|
|
![]() Grupa: Administratorzy Postów: 1 552 Pomógł: 211 Dołączył: 7.07.2009 Skąd: NJ ![]() |
Nekomata proszę, darujmy sobie przepisywanie manuala i książek...
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 14.08.2025 - 08:11 |