Re: [PHP] isset empty or ...?

[email protected] (Александр Меньщиков)
Newsgroups php.general
Message-ID <[email protected]>
http://www.php.net/manual/en/types.comparisons.php
Maybe first table PHP functions comparison (including 'isset' and 'empty') could help you.


31.03.2013 в 8:53, John Taylor-Johnston написал(а):
> I'm using

if($mydata->>DPRresponselocationaddress1 != "")

> is this the same as

if (!isset($mydata->>DPRresponselocationaddress))
> http://php.net/manual/en/function.isset.php

> or

if (!empty($mydata->>DPRresponselocationaddress))
> http://php.net/manual/en/function.empty.php

> or is there another function I have not learned yet? I don't really get 
> the difference between isset and empty.

> John



-- 
С уважением, Александр Меньщиков

Тел.: +7 921 408-6-777
E-mail: [email protected]
signature.asc (application/pgp-signature, 830 B)
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (MingW32)

iQIcBAEBAgAGBQJRV+SHAAoJEJB0AS7ifFUBBTsP/3cLxOy03YPtGPl5pOMSZBNO
M/YlrP8c/2fWlVIp507BpQPv1gZHwmLtXTkAyP30onavU1sarOb00BP5l175+lTv
6u2TQWZG79jvVDTbKYTx5R0wKWRyuSFPNH/0taMQt/pjDgq6Ky6d3/wJc32vWJdZ
UpoEEjMD/dBpNgUnKtjLgE5J7LVg+uH242BojD01JcguRlXe8D+wyA/gjh7U2/eu
1E4TxfL1b12ZpaUIxspV8DkxCg9zeHg4nGwXqlSKgKzuHJLKTqCPUAtAeUQBe635
p35iDSJHdwL4zjxOPqiXrKY0V/muZCE8Np7+gN41stnLwzyfS7M2sfpxaVwf8OWJ
au+fV306WxMBIp9clH6COnqeNpgS2xP/fhbgY3aXuP+VChh4WaHtTakbqPTMCjtE
oImhx7nBuSIP9mD4OM2QcTrwLC2QNpdygxzsaEDQlFSw5be9J7icbBLjuEkqym96
LeSooWX9FzQie/MZwGe15MntnQW6IhmTYnHvsp63r/EZ3qfFMK5R4qrOtum2UTOK
eQ8ApYLSQOnxyYP7qbOkbI3S+5lLGfEvIb1/WSdHLtCslDSas1UjijqSeMP6RLe4
5Zh8ZY1FYMlbBqCCQo34fmLKSzcJdb87XzQgZlEyL63vGlTafp3MU64/6qe8z1NO
EIlFfDzJHyIl30j7S6nA
=sT4D
-----END PGP MESSAGE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.