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