FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » A modest proposal
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: A modest proposal [message #184675 is a reply to message #184674] Wed, 15 January 2014 01:03 Go to previous messageGo to previous message
Denis McMahon is currently offline  Denis McMahon
Messages: 634
Registered: September 2010
Karma:
Senior Member
On Wed, 15 Jan 2014 00:23:53 +0000, Beauregard T. Shagnasty wrote:

> Doug Miller wrote:
>
>> In anticipation of what is sure to be coming soon, I suggest we all
>> agree that the next time richard insults or abuses anyone who is
>> attempting to answer his questions or explain his errors, none of us
>> shall respond to any of his posts until he apologizes for the insult or
>> abuse.
>>
>> I'm in, if others agree. Who's with me? BTS? Denis? PointedHead?
>
> It's always one of two things that causes me to respond to him:
>
> 1) His complete lack of skills and ability to learn 2) His
rudeness
>
> Usually both. ;-) (But I won't write any code for him.)

I won't write his code for him, but I will write code (like the
following) which might demonstrate (if he runs it and reads and studies
carefully the output) to him what he's still failing to comprehend.
Doubtful though.

<?php

if ( 0 == "A" ) echo "0 == \"A\" is true\n";
else echo "0 == \"A\" is false\n";

if ( 0 <= "A" ) echo "0 <= \"A\" is true\n";
else echo "0 <= \"A\" is false\n";

if ( 0 >= "A" ) echo "0 >= \"A\" is true\n";
else echo "0 >= \"A\" is false\n";

if ( 0 == "Z" ) echo "0 == \"Z\" is true\n";
else echo "0 == \"Z\" is false\n";

if ( 0 <= "Z" ) echo "0 <= \"Z\" is true\n";
else echo "0 <= \"Z\" is false\n";

if ( 0 >= "Z" ) echo "0 >= \"Z\" is true\n";
else echo "0 >= \"Z\" is false\n";

if ( "text" ) echo "\"text\" is true\n";
else echo "\"text\" is false\n";

if ( "A" ) echo "\"A\" is true\n";
else echo "\"A\" is false\n";

if ( "A" || "B" || "C" ) echo "\"A\" || \"B\" || \"C\" is true\n";
else echo "\"A\" || \"B\" || \"C\" is false\n";

switch ( "text" ) {

case "A" || "B":
echo "\"text\" == (\"A\" || \"B\") because \"text\" and (\"A\" ||
\"B\") both evaluate as true\n";
break;

default:
echo "\"text\" != (\"A\" || \"B\") because \"text\" and (\"A\" ||
\"B\") do not both evaluate as true\n";
break;

}

--
Denis McMahon, denismfmcmahon(at)gmail(dot)com
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: strange parameters...
Next Topic: PROBLEMA
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 21:31:43 GMT 2024

Total time taken to generate the page: 0.21735 seconds