Several questions on “what is the shortest code for this?“:
-
Without {}
if($match->name == "Marry") { $match = true; } -
Without {}
if($match->name == "Marry") { $match = true; } else { $match = false; } -
How to ask
if $match = true? -
How to ask
if array() has any value? -
How to ask
if $variable has numeric value(0-9)? -
How to ask
if $variable's first symbol isn't a letter or number? -
How to ask
if $match = false?
1)
2)
3)
4)
5)
6)