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
Post a Comment