🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #231033

if ($x) - co to właściwie znaczy? (newbie)

#231033
From: jivanmukta
Date: Sun, 21 Jun 2015 16:02
6 lines
1396 bytes
Uczę się PHP5 i mam proste pytanie. Co właściwie znaczy instrukcja:

  if ($x) { ... }

Czy ten test jest równoważny ((bool)$x) czy (!empty($x)) a może ($x !== false).
(Nie wiem jak to prosto sprawdzić). Byłbym wdzięczny za odpowiedź.
Technical Details
Message-ID: <02fcafcd-92d4-402d-b951-cf908f0625cb@googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!1.eu.feeder.erje.net!news.ripco.com!news.glorb.com!m20no190599iga.0!news-out.google.com!k20ni2927qgd.0!nntp.google.com!q107no2498945qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Received: by 10.66.90.230 with SMTP id bz6mr33256064pab.40.1434902571775;        Sun, 21 Jun 2015 09:02:51 -0700 (PDT)
X-Received: by 10.140.33.76 with SMTP id i70mr68532qgi.14.1434902571677; Sun, 21 Jun 2015 09:02:51 -0700 (PDT)
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!feeder.erje.net!1.eu.feeder.erje.net!news.ripco.com!news.glorb.com!m20no190599iga.0!news-out.google.com!k20ni2927qgd.0!nntp.google.com!q107no2498945qgd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: pl.comp.lang.php
Date: Sun, 21 Jun 2015 09:02:51 -0700 (PDT)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.28.54.65; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa
NNTP-Posting-Host: 83.28.54.65
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <02fcafcd-92d4-402d-b951-cf908f0625cb@googlegroups.com>
Subject: if ($x)  - co to właściwie znaczy? (newbie)
From: jivanmukta@poczta.onet.pl
Injection-Date: Sun, 21 Jun 2015 16:02:51 +0000
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit