Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1467
| From | Gregor Kofler <usenet@gregorkofler.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: evaluating a null value in an array |
| Date | 2011-05-07 18:34 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <iq3saq$gre$1@dont-email.me> (permalink) |
| References | <5uWdnXAptq8EsVjQnZ2dnUVZ_sidnZ2d@cablespeedmi.com> <4dc5658b$0$31951$bed64819@gradwell.net> |
Am 2011-05-07 17:30, Denis McMahon meinte: > On Sat, 07 May 2011 07:27:21 -0400, bill wrote: > >> a suggestion on how to evaluate this value. > > if ( > !(isset($insInfo[3])) // $insInfo3 not defined > || (is__null($insInfo[3])) // $insInfo3 defined and null Not necessary. isset() also returns false when the tested variable is set to NULL [1]. $bar = NULL; var_dump(isset($foo)); // FALSE var_dump(isset($bar)); // FALSE Gregor [1] http://php.net/manual/de/function.isset.php -- http://vxweb.net
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll thread
evaluating a null value in an array bill <nobody@spamcop.net> - 2011-05-07 07:27 -0400
Re: evaluating a null value in an array Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-07 07:36 -0400
Re: evaluating a null value in an array Gregor Kofler <usenet@gregorkofler.com> - 2011-05-07 18:35 +0200
Re: evaluating a null value in an array dougatmilmacdotcom@example.com (Doug Miller) - 2011-05-07 23:46 +0000
Re: evaluating a null value in an array Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-08 13:56 +0200
Re: evaluating a null value in an array Gregor Kofler <usenet@gregorkofler.com> - 2011-05-08 20:18 +0200
Re: evaluating a null value in an array bill <nobody@spamcop.net> - 2011-05-07 13:50 -0400
Re: evaluating a null value in an array Denis McMahon <denis.m.f.mcmahon@gmail.com> - 2011-05-07 15:30 +0000
Re: evaluating a null value in an array Gregor Kofler <usenet@gregorkofler.com> - 2011-05-07 18:34 +0200
csiph-web