php - Set value to false if value if == false -


If I set the value == is wrong. How can I set a value false?

I know if I can do it like this:

  $ string = ('There is such a truth that returns' Is "whatever is right"): wrong);  

But I need something clever.

I am searching for something like this.

  $ string = ('Such a return true')? false;  

Example I want to be a liar:

  $ string = array ()? false; $ String = ''? false;  

tl; Dr: If string is not setting i == is not true, set to false.

If you are using 5.3+

  $ string = ('Some such truth that comes back') ?: wrong;  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -