Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5267 > unrolled thread

A little tip

Started byShelly <sheldonlg@thevillages.net>
First post2012-03-30 13:02 -0400
Last post2012-04-02 23:43 +0200
Articles 14 on this page of 34 — 10 participants

Back to article view | Back to comp.lang.php


Contents

  A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-30 13:02 -0400
    Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 13:20 -0400
      Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-30 14:18 -0400
        Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 16:19 -0400
        Re: A little tip Thomas Mlynarczyk <thomas@mlynarczyk-webdesign.de> - 2012-03-30 22:30 +0200
          Re: A little tip Doug Miller <doug_at_milmac_dot_com@example.com> - 2012-03-30 20:55 +0000
          Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-30 16:55 -0400
            Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 17:07 -0400
            Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-31 10:05 -0400
              Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-31 11:27 -0400
            Re: A little tip Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-03 15:52 +0200
              Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-04-03 10:20 -0400
      Re: A little tip Doug Miller <doug_at_milmac_dot_com@example.com> - 2012-03-30 19:36 +0000
        Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 16:21 -0400
          Re: A little tip Doug Miller <doug_at_milmac_dot_com@example.com> - 2012-03-30 20:52 +0000
            Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 17:08 -0400
              Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-30 17:22 -0400
                Re: A little tip "Mr. B-o-B" <mr.chew.baka@gmail.com> - 2012-03-30 18:00 -0500
                  Re: A little tip Scott Johnson <noonehome@chalupasworld.com> - 2012-03-30 20:33 -0700
            Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-03-30 17:20 -0400
              Re: A little tip Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-03 15:56 +0200
                Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-04-03 10:20 -0400
            Re: A little tip Michael Fesser <netizen@gmx.de> - 2012-03-31 05:04 +0200
              Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 23:31 -0400
            Re: A little tip Scott Johnson <noonehome@chalupasworld.com> - 2012-03-30 20:35 -0700
              Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-30 23:53 -0400
                Re: A little tip Doug Miller <doug_at_milmac_dot_com@example.com> - 2012-03-31 11:58 +0000
                  Re: A little tip Jerry Stuckle <jstucklex@attglobal.net> - 2012-03-31 09:05 -0400
    Re: A little tip "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2012-04-02 09:42 +0200
      Re: A little tip "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-02 10:22 +0200
        Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-04-02 08:15 -0400
          Re: A little tip "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-02 14:27 +0200
            Re: A little tip Shelly <sheldonlg@thevillages.net> - 2012-04-02 09:40 -0400
              Re: A little tip "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-04-02 23:43 +0200

Page 2 of 2 — ← Prev page 1 [2]


#5339

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2012-04-03 15:56 +0200
Message-ID<1572324.RcaxXxdAkp@PointedEars.de>
In reply to#5279
Shelly wrote:

> On 3/30/2012 4:52 PM, Doug Miller wrote:
>> Jerry Stuckle […]:
>>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>>> Jerry Stuckle<jstucklex@attglobal.net>   wrote in
>>>> news:jl4q1i$top$1@dont-email.me:
>>>>
>>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>> ==========
>>>>>> $val= TRUE;
>>>>>> $val&= TRUE;
>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>
>>>>>> Results in:
>>>>>> Triple is false
>>>>>> Double is true
>>>>>> ==========
>>>>>>
>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>
>>>>> Yes, just another problem with PHP.  After the second assignment, $val
>>>>> is actually a reference to TRUE.
>>> It obviously is nothing of the sort.
>>>
>>> And you're obviously trolling (which figures for you) and have no idea
>>> what his problem is - or you would have answered his question.
>>>
>> Typical Stuckle -- never, EVER, under any circumstances admit to being
>> wrong.
>
> Uh, he did.

Where?


PointedEars
-- 
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
  -- from <http://www.vortex-webdesign.com/help/hidesource.htm> (404-comp.)

[toc] | [prev] | [next] | [standalone]


#5341

FromShelly <sheldonlg@thevillages.net>
Date2012-04-03 10:20 -0400
Message-ID<jlf0vr$k8d$2@dont-email.me>
In reply to#5339
On 4/3/2012 9:56 AM, Thomas 'PointedEars' Lahn wrote:
> Shelly wrote:
>
>> On 3/30/2012 4:52 PM, Doug Miller wrote:
>>> Jerry Stuckle […]:
>>>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>>>> Jerry Stuckle<jstucklex@attglobal.net>    wrote in
>>>>> news:jl4q1i$top$1@dont-email.me:
>>>>>
>>>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>>> ==========
>>>>>>> $val= TRUE;
>>>>>>> $val&= TRUE;
>>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>>
>>>>>>> Results in:
>>>>>>> Triple is false
>>>>>>> Double is true
>>>>>>> ==========
>>>>>>>
>>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>>
>>>>>> Yes, just another problem with PHP.  After the second assignment, $val
>>>>>> is actually a reference to TRUE.
>>>> It obviously is nothing of the sort.
>>>>
>>>> And you're obviously trolling (which figures for you) and have no idea
>>>> what his problem is - or you would have answered his question.
>>>>
>>> Typical Stuckle -- never, EVER, under any circumstances admit to being
>>> wrong.
>>
>> Uh, he did.
>
> Where?

His second reply.  The one after I pointed out to him how he has misread 
what I wrote.
>
>
> PointedEars


-- 
Shelly

[toc] | [prev] | [next] | [standalone]


#5282

FromMichael Fesser <netizen@gmx.de>
Date2012-03-31 05:04 +0200
Message-ID<enscn7tol0o4d311dq1n495ihe4fpqmr4g@mfesser.de>
In reply to#5274
.oO(Doug Miller)

>Jerry Stuckle <jstucklex@attglobal.net> wrote in news:jl54k3$bv5$2@dont-email.me:
>
>> And you're obviously trolling (which figures for you) and have no idea 
>> what his problem is - or you would have answered his question.
>> 
>Typical Stuckle -- never, EVER, under any circumstances admit to being wrong.

| That's how trolls act.  If they couldn't criticize someone, they
| wouldn't have anything to say.  But their huge egos won't let them
| stay quiet.

Fits perfectly on Jerry. Guess who wrote that ...

Micha

-- 
http://mfesser.de/blickwinkel

[toc] | [prev] | [next] | [standalone]


#5283

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-03-30 23:31 -0400
Message-ID<jl5tr6$7sq$1@dont-email.me>
In reply to#5282
On 3/30/2012 11:04 PM, Michael Fesser wrote:
> .oO(Doug Miller)
>
>> Jerry Stuckle<jstucklex@attglobal.net>  wrote in news:jl54k3$bv5$2@dont-email.me:
>>
>>> And you're obviously trolling (which figures for you) and have no idea
>>> what his problem is - or you would have answered his question.
>>>
>> Typical Stuckle -- never, EVER, under any circumstances admit to being wrong.
>
> | That's how trolls act.  If they couldn't criticize someone, they
> | wouldn't have anything to say.  But their huge egos won't let them
> | stay quiet.
>
> Fits perfectly on Jerry. Guess who wrote that ...
>
> Micha
>

Boy, this sure brought the trolls out.  Here's another one!

Now all we need are Pointed Head and TNP to make it complete...

Of course, I don't see you adding anything constructive to this 
conversation.  But then trolls don't.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5285

FromScott Johnson <noonehome@chalupasworld.com>
Date2012-03-30 20:35 -0700
Message-ID<jl5u3h$8m7$2@dont-email.me>
In reply to#5274
On 3/30/2012 1:52 PM, Doug Miller wrote:
> Jerry Stuckle<jstucklex@attglobal.net>  wrote in news:jl54k3$bv5$2@dont-email.me:
>
>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>> Jerry Stuckle<jstucklex@attglobal.net>   wrote in news:jl4q1i$top$1@dont-email.me:
>>>
>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>> Here is something I jist came across, so I am passing it on:
>>>>> ==========
>>>>> $val= TRUE;
>>>>> $val&= TRUE;
>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>
>>>>> Results in:
>>>>> Triple is false
>>>>> Double is true
>>>>> ==========
>>>>>
>>>>> Who designed that? It is totally counter-intuitive.
>>>>>
>>>>
>>>> Yes, just another problem with PHP.  After the second assignment, $val
>>>> is actually a reference to TRUE.
>>>
>>> It obviously is nothing of the sort.
>>
>> And you're obviously trolling (which figures for you) and have no idea
>> what his problem is - or you would have answered his question.
>>
> Typical Stuckle -- never, EVER, under any circumstances admit to being wrong.
>

waits patiently for apology from Doug to Jerry since he did admit he was 
wrong.

[toc] | [prev] | [next] | [standalone]


#5286

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-03-30 23:53 -0400
Message-ID<jl5v43$lk8$1@dont-email.me>
In reply to#5285
On 3/30/2012 11:35 PM, Scott Johnson wrote:
> On 3/30/2012 1:52 PM, Doug Miller wrote:
>> Jerry Stuckle<jstucklex@attglobal.net> wrote in
>> news:jl54k3$bv5$2@dont-email.me:
>>
>>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>>> Jerry Stuckle<jstucklex@attglobal.net> wrote in
>>>> news:jl4q1i$top$1@dont-email.me:
>>>>
>>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>> ==========
>>>>>> $val= TRUE;
>>>>>> $val&= TRUE;
>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>
>>>>>> Results in:
>>>>>> Triple is false
>>>>>> Double is true
>>>>>> ==========
>>>>>>
>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>>
>>>>>
>>>>> Yes, just another problem with PHP. After the second assignment, $val
>>>>> is actually a reference to TRUE.
>>>>
>>>> It obviously is nothing of the sort.
>>>
>>> And you're obviously trolling (which figures for you) and have no idea
>>> what his problem is - or you would have answered his question.
>>>
>> Typical Stuckle -- never, EVER, under any circumstances admit to being
>> wrong.
>>
>
> waits patiently for apology from Doug to Jerry since he did admit he was
> wrong.

Don't hold your breath...

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5287

FromDoug Miller <doug_at_milmac_dot_com@example.com>
Date2012-03-31 11:58 +0000
Message-ID<XnsA02751198FA0Ddougmilmaccom@88.198.244.100>
In reply to#5286
Jerry Stuckle <jstucklex@attglobal.net> wrote in news:jl5v43$lk8$1@dont-email.me:

> On 3/30/2012 11:35 PM, Scott Johnson wrote:
>> On 3/30/2012 1:52 PM, Doug Miller wrote:
>>> Jerry Stuckle<jstucklex@attglobal.net> wrote in
>>> news:jl54k3$bv5$2@dont-email.me:
>>>
>>>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>>>> Jerry Stuckle<jstucklex@attglobal.net> wrote in
>>>>> news:jl4q1i$top$1@dont-email.me:
>>>>>
>>>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>>> ==========
>>>>>>> $val= TRUE;
>>>>>>> $val&= TRUE;
>>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>>
>>>>>>> Results in:
>>>>>>> Triple is false
>>>>>>> Double is true
>>>>>>> ==========
>>>>>>>
>>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>>>
>>>>>>
>>>>>> Yes, just another problem with PHP. After the second assignment, $val
>>>>>> is actually a reference to TRUE.
>>>>>
>>>>> It obviously is nothing of the sort.
>>>>
>>>> And you're obviously trolling (which figures for you) and have no idea
>>>> what his problem is - or you would have answered his question.
>>>>
>>> Typical Stuckle -- never, EVER, under any circumstances admit to being
>>> wrong.
>>>
>>
>> waits patiently for apology from Doug to Jerry since he did admit he was
>> wrong.
> 
> Don't hold your breath...
> 
Well, here it comes. Jerry, I do apologize. I hadn't seen your other post.

[toc] | [prev] | [next] | [standalone]


#5288

FromJerry Stuckle <jstucklex@attglobal.net>
Date2012-03-31 09:05 -0400
Message-ID<jl6ve3$ncs$1@dont-email.me>
In reply to#5287
On 3/31/2012 7:58 AM, Doug Miller wrote:
> Jerry Stuckle<jstucklex@attglobal.net>  wrote in news:jl5v43$lk8$1@dont-email.me:
>
>> On 3/30/2012 11:35 PM, Scott Johnson wrote:
>>> On 3/30/2012 1:52 PM, Doug Miller wrote:
>>>> Jerry Stuckle<jstucklex@attglobal.net>  wrote in
>>>> news:jl54k3$bv5$2@dont-email.me:
>>>>
>>>>> On 3/30/2012 3:36 PM, Doug Miller wrote:
>>>>>> Jerry Stuckle<jstucklex@attglobal.net>  wrote in
>>>>>> news:jl4q1i$top$1@dont-email.me:
>>>>>>
>>>>>>> On 3/30/2012 1:02 PM, Shelly wrote:
>>>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>>>> ==========
>>>>>>>> $val= TRUE;
>>>>>>>> $val&= TRUE;
>>>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>>>
>>>>>>>> Results in:
>>>>>>>> Triple is false
>>>>>>>> Double is true
>>>>>>>> ==========
>>>>>>>>
>>>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>>>>
>>>>>>>
>>>>>>> Yes, just another problem with PHP. After the second assignment, $val
>>>>>>> is actually a reference to TRUE.
>>>>>>
>>>>>> It obviously is nothing of the sort.
>>>>>
>>>>> And you're obviously trolling (which figures for you) and have no idea
>>>>> what his problem is - or you would have answered his question.
>>>>>
>>>> Typical Stuckle -- never, EVER, under any circumstances admit to being
>>>> wrong.
>>>>
>>>
>>> waits patiently for apology from Doug to Jerry since he did admit he was
>>> wrong.
>>
>> Don't hold your breath...
>>
> Well, here it comes. Jerry, I do apologize. I hadn't seen your other post.

Thank you, Doug.  I appreciate the apology.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

[toc] | [prev] | [next] | [standalone]


#5303

From"Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid>
Date2012-04-02 09:42 +0200
Message-ID<jlbl9t$aam$1@dont-email.me>
In reply to#5267
El 30/03/2012 19:02, Shelly escribió/wrote:
> Here is something I jist came across, so I am passing it on:
> ==========
> $val= TRUE;
> $val &= TRUE;
> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>
> Results in:
> Triple is false
> Double is true
> ==========
>
> Who designed that? It is totally counter-intuitive.

When trying to understand these subtleties, I find var_dump() more 
useful than plain echos. In this case:

$val= TRUE;
var_dump($val);
$val &= TRUE;
var_dump($val);

... prints:

bool(true)
int(1)

... which makes the result of loose and strict comparisons obvious.



-- 
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--

[toc] | [prev] | [next] | [standalone]


#5304

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-04-02 10:22 +0200
Message-ID<9tt5tiFfmoU1@mid.uni-berlin.de>
In reply to#5303
Am 02.04.2012 09:42, schrieb "Álvaro G. Vicario":
> El 30/03/2012 19:02, Shelly escribió/wrote:
>> Here is something I jist came across, so I am passing it on:
>> ==========
>> $val= TRUE;
>> $val &= TRUE;
>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>
>> Results in:
>> Triple is false
>> Double is true
>> ==========
>>
>> Who designed that? It is totally counter-intuitive.
> 
> When trying to understand these subtleties, I find var_dump() more useful than plain
> echos. In this case:
> 
> $val= TRUE;
> var_dump($val);
> $val &= TRUE;
> var_dump($val);
> 
> ... prints:
> 
> bool(true)
> int(1)
> 
> ... which makes the result of loose and strict comparisons obvious.
> 

Yes, and then he could print http://de2.php.net/manual/en/types.comparisons.php and
nail it to the monitor.

/Str.

[toc] | [prev] | [next] | [standalone]


#5310

FromShelly <sheldonlg@thevillages.net>
Date2012-04-02 08:15 -0400
Message-ID<jlc59i$n8v$3@dont-email.me>
In reply to#5304
On 4/2/2012 4:22 AM, M. Strobel wrote:
> Am 02.04.2012 09:42, schrieb "Álvaro G. Vicario":
>> El 30/03/2012 19:02, Shelly escribió/wrote:
>>> Here is something I jist came across, so I am passing it on:
>>> ==========
>>> $val= TRUE;
>>> $val&= TRUE;
>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>
>>> Results in:
>>> Triple is false
>>> Double is true
>>> ==========
>>>
>>> Who designed that? It is totally counter-intuitive.
>>
>> When trying to understand these subtleties, I find var_dump() more useful than plain
>> echos. In this case:
>>
>> $val= TRUE;
>> var_dump($val);
>> $val&= TRUE;
>> var_dump($val);
>>
>> ... prints:
>>
>> bool(true)
>> int(1)
>>
>> ... which makes the result of loose and strict comparisons obvious.
>>
>
> Yes, and then he could print http://de2.php.net/manual/en/types.comparisons.php and
> nail it to the monitor.

Now was that really necessary -- or do you just get a rise out of 
insulting people who try to be helpful?

-- 
Shelly

[toc] | [prev] | [next] | [standalone]


#5312

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-04-02 14:27 +0200
Message-ID<9ttk9sFu5bU1@mid.uni-berlin.de>
In reply to#5310
Am 02.04.2012 14:15, schrieb Shelly:
> On 4/2/2012 4:22 AM, M. Strobel wrote:
>> Am 02.04.2012 09:42, schrieb "Álvaro G. Vicario":
>>> El 30/03/2012 19:02, Shelly escribió/wrote:
>>>> Here is something I jist came across, so I am passing it on:
>>>> ==========
>>>> $val= TRUE;
>>>> $val&= TRUE;
>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>
>>>> Results in:
>>>> Triple is false
>>>> Double is true
>>>> ==========
>>>>
>>>> Who designed that? It is totally counter-intuitive.
>>>
>>> When trying to understand these subtleties, I find var_dump() more useful than plain
>>> echos. In this case:
>>>
>>> $val= TRUE;
>>> var_dump($val);
>>> $val&= TRUE;
>>> var_dump($val);
>>>
>>> ... prints:
>>>
>>> bool(true)
>>> int(1)
>>>
>>> ... which makes the result of loose and strict comparisons obvious.
>>>
>>
>> Yes, and then he could print http://de2.php.net/manual/en/types.comparisons.php and
>> nail it to the monitor.
> 
> Now was that really necessary -- or do you just get a rise out of insulting people
> who try to be helpful?
> 

Insulting? The monitor, because I told you to nail the paper on it?

And then I said "he", which went to the original poster. That is you.

I know your only error was using the wrong operator, but when it comes to loose
comparison the link I gave is *the* reference. There are far more people reading here
than writing who stumble upon this by G____e and can find complete solutions.

/Str.

[toc] | [prev] | [next] | [standalone]


#5314

FromShelly <sheldonlg@thevillages.net>
Date2012-04-02 09:40 -0400
Message-ID<jlca84$rkt$1@dont-email.me>
In reply to#5312
On 4/2/2012 8:27 AM, M. Strobel wrote:
> Am 02.04.2012 14:15, schrieb Shelly:
>> On 4/2/2012 4:22 AM, M. Strobel wrote:
>>> Am 02.04.2012 09:42, schrieb "Álvaro G. Vicario":
>>>> El 30/03/2012 19:02, Shelly escribió/wrote:
>>>>> Here is something I jist came across, so I am passing it on:
>>>>> ==========
>>>>> $val= TRUE;
>>>>> $val&= TRUE;
>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>
>>>>> Results in:
>>>>> Triple is false
>>>>> Double is true
>>>>> ==========
>>>>>
>>>>> Who designed that? It is totally counter-intuitive.
>>>>
>>>> When trying to understand these subtleties, I find var_dump() more useful than plain
>>>> echos. In this case:
>>>>
>>>> $val= TRUE;
>>>> var_dump($val);
>>>> $val&= TRUE;
>>>> var_dump($val);
>>>>
>>>> ... prints:
>>>>
>>>> bool(true)
>>>> int(1)
>>>>
>>>> ... which makes the result of loose and strict comparisons obvious.
>>>>
>>>
>>> Yes, and then he could print http://de2.php.net/manual/en/types.comparisons.php and
>>> nail it to the monitor.
>>
>> Now was that really necessary -- or do you just get a rise out of insulting people
>> who try to be helpful?
>>
>
> Insulting? The monitor, because I told you to nail the paper on it?

Yes.  A non-insulting way or responding, while giving the information, 
would have been

"Yes, the complete information can be found at
http://de2.php.net/manual/en/types.comparisons.php"

> And then I said "he", which went to the original poster. That is you.

-- 
Shelly

[toc] | [prev] | [next] | [standalone]


#5328

From"M. Strobel" <sorry_no_mail_here@nowhere.dee>
Date2012-04-02 23:43 +0200
Message-ID<9tukr7F3l3U1@mid.uni-berlin.de>
In reply to#5314
Am 02.04.2012 15:40, schrieb Shelly:
> On 4/2/2012 8:27 AM, M. Strobel wrote:
>> Am 02.04.2012 14:15, schrieb Shelly:
>>> On 4/2/2012 4:22 AM, M. Strobel wrote:
>>>> Am 02.04.2012 09:42, schrieb "Álvaro G. Vicario":
>>>>> El 30/03/2012 19:02, Shelly escribió/wrote:
>>>>>> Here is something I jist came across, so I am passing it on:
>>>>>> ==========
>>>>>> $val= TRUE;
>>>>>> $val&= TRUE;
>>>>>> print ($val === TRUE) ? "Triple is true\n" : "Triple is false\n";
>>>>>> print ($val == TRUE) ? "Double is true\n" : "Double is false\n";
>>>>>>
>>>>>> Results in:
>>>>>> Triple is false
>>>>>> Double is true
>>>>>> ==========
>>>>>>
>>>>>> Who designed that? It is totally counter-intuitive.
>>>>>
>>>>> When trying to understand these subtleties, I find var_dump() more useful than
>>>>> plain
>>>>> echos. In this case:
>>>>>
>>>>> $val= TRUE;
>>>>> var_dump($val);
>>>>> $val&= TRUE;
>>>>> var_dump($val);
>>>>>
>>>>> ... prints:
>>>>>
>>>>> bool(true)
>>>>> int(1)
>>>>>
>>>>> ... which makes the result of loose and strict comparisons obvious.
>>>>>
>>>>
>>>> Yes, and then he could print http://de2.php.net/manual/en/types.comparisons.php and
>>>> nail it to the monitor.
>>>
>>> Now was that really necessary -- or do you just get a rise out of insulting people
>>> who try to be helpful?
>>>
>>
>> Insulting? The monitor, because I told you to nail the paper on it?
> 
> Yes.  A non-insulting way or responding, while giving the information, would have been
> 
> "Yes, the complete information can be found at
> http://de2.php.net/manual/en/types.comparisons.php"
> 

If you take words like that, have fun on Usenet.

/Str.

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | comp.lang.php


csiph-web