Active 5 months ago. Viewed k times. Improve this question. Erin Tucker Erin Tucker 3, 2 2 gold badges 14 14 silver badges 21 21 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Godwin Godwin 9, 4 4 gold badges 37 37 silver badges 56 56 bronze badges. Oups my mistake, but your last sentence led me think NULL, false, 0 and "" were strictly equal which is wrong, sorry for the misunderstanding.
James it's an intended behaviour in PHP, it's still true even in and will be true for a long time I suppose — Defrag. That's the reason you should be consistence in your return values. Intended behaviour! Show 3 more comments. NULL The special null value represents a variable with no value. A variable is considered to be null if: it has been assigned the constant null. Syntax There is only one value of type null , and that is the case-insensitive constant null. On the other hand, Incrementation works simply as expected.
Add a comment. Active Oldest Votes. Improve this answer. SilentGhost SilentGhost k 61 61 gold badges silver badges bronze badges. You hint at a deep question: when should an expression be true? Below, I will explain why what you are doing isn't working and how to fix it.
But not what you want. Hope this helps. Richard Richard Pao Im Pao Im 3 3 silver badges 7 7 bronze badges. Skilldrick Skilldrick Salman A Salman A k 78 78 gold badges silver badges bronze badges. Thermech Thermech 3, 1 1 gold badge 36 36 silver badges 58 58 bronze badges. Abhishek Deshpande Abhishek Deshpande 86 3 3 bronze badges. Im simply printing the checkbox. And its checked if the value is not null. It dosent seem to do that.. Hense it always goes into the first if statment — Angel. Sry this might sound mean..
But i didnt ask for syntax problems.. I asked for the Null value.. And if there was syntax error.. However said that i did see the bracket.. I didnt actually copy and paste my code.. PS it wasnt me who downvoted you :D — Angel. Add a comment. Active Oldest Votes. Improve this answer.
0コメント