-----BEGIN PGP SIGNED MESSAGE-----

Moin,


On Friday 17 September 2004 10:56, [EMAIL PROTECTED] wrote:
> But that would return '' or 1and presumably the author
> wanted zero instead of an empty string.
>
> Cheers, Brent
> On Fri, Sep 17, 2004 at 09:33:39AM +0100, [EMAIL PROTECTED] wrote:
> > it's basically a confusing if else
> >
> > if ($one == $two) { return 1 } else { return 0 }
>
> Or
>
>   return $one == $two;

I think used in the past:

 return ($one == $two) <=> 0;

ior just

 return ($one == $two) ? 1 : 0;

Best wishes,

Tels

- --
 Signed on Fri Sep 17 11:29:34 2004 with key 0x93B84C15.
 Visit my photo gallery at http://bloodgate.com/photos/
 PGP key on http://bloodgate.com/tels.asc or per email.

 "HOT PACKET ON SERVER ACTION! Click here for FREE ACCESS to streaming
 video of dirty packets penetrating badly-configured firewalls!!!" aanand
 (705284) on 2004-03-20 on /. about the Adult Bit and the Evil bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl.

iQEVAwUBQUqu1HcLPEOTuEwVAQFf6wf+ISPg3J2weKhU2u4rhLAeM2THtSqxLhjk
x0HN92j0ujilRGTAZ4ZgDDhWNnbDqfz5QloMCJ1f2FKBOqK7MF3ehHfxPA9DKF0i
+a8TrBdGV+zg0sTp6/hfWfhJT1EEiLspMxhfCvvu9M8M8/UtK3vE5GPDBY6wAFlI
O5Vyhby7SOp++SxHmfzL1Mtn4mQO5TD+pCKC+uCiZtCUGYsXW9S32mLxMMvXJ5b6
ex1cgKwAnVJOFgIkby8ovzLahL0v86Oe2BhFNO4NrVG5quoYfO+Ft2B1Dhuq6Oeo
wGu/B437CjsAS06X07aKnu5SSPT6sI8m20JRFCFin/bOYjJGTI/0Kw==
=26pC
-----END PGP SIGNATURE-----

Reply via email to