Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]czy to jest to samo?, czy to jest to samo?
-gox-
post
Post #1





Goście







witam, te dwa wyrazenia sa rownowazne?


#1
  1. <?php
  2. $width = isset($_GET['width']) && $_GET['height'] < 600 ? $_GET['width'] : '120';
  3. ?>



#2
  1. <?php
  2. $height = isset($_GET['height']) && $_GET['height'] < 200 ? $_GET['height'] : '40';
  3. if (isset($_GET['height']) && $_GET['height'] < 200) {
  4. $height = $_GET['height'];
  5. }
  6. else {
  7. $height = 40;
  8. }
  9. ?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.08.2025 - 23:37