Comments on: Understanding PHP Operators of Logic, or || and && and ! a lot more https://wpshout.com/php-logic-operators/ A hub for advanced WordPress users, developers & savvy business owners. Thu, 23 Apr 2020 02:31:30 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: WPSelected https://wpshout.com/php-logic-operators/#comment-21535 Thu, 04 Jul 2019 14:23:12 +0000 https://wpshout.com/?p=19179#comment-21535 I wish to see more blog posts in this clear and informative style.

]]>
By: JWP https://wpshout.com/php-logic-operators/#comment-21534 Thu, 04 Jul 2019 01:59:20 +0000 https://wpshout.com/?p=19179#comment-21534 Please check your description of exclusive or. It is my understanding that one side of the operator must be true but NOT both sides as you have stated.

And your quick dismissal of the ‘and’ and ‘or’ operators as simply keyboard alternatives to ‘&&’ and ‘||’ is a bit too simplistic. Please review the order of precedence – ‘&&’ is NOT identical to ‘and’.

Otherwise a good basic discussion.

JWP

]]>
By: David Hayes https://wpshout.com/php-logic-operators/#comment-21533 Wed, 03 Jul 2019 17:16:35 +0000 https://wpshout.com/?p=19179#comment-21533 In reply to Michael.

Essentially. Not the best English, but you’ve got what I’m going for 😉

]]>
By: Michael https://wpshout.com/php-logic-operators/#comment-21532 Wed, 03 Jul 2019 14:01:09 +0000 https://wpshout.com/?p=19179#comment-21532 Nice explanation of boolean logic operators, in PHP.

In your last sentence of the article:
Quick recap! Not to be too clever || rude. But your can && will succeed! Best of luck ?

Wouldn’t that mean:
Quick recap NOT Not to be too clever OR rude. But your can AND will succeed NOT Best of luck ?

;p

]]>