In php, you can use a Nested If structure, or you can combine the conditions using the && method ... are there any known differences in regards to performance/efficiency? (Is one known/established to be faster, or less resource intensive etc.?)
Nested:
if ($X == $Y) {
if ($N >= $P) {
if ($tt != true) {
// do something
}
}
}
or Combined with AND:
if ($X == $Y && $N >= $P && $tt != true) {
// do something
}
I know this appears to be a duplicate of
PHP Nested Ifs vs Single If with Multiple Conditions
but that is because it wasn't really answered (instead people linked to things in Java etc.).
So please don't flag this as a dupe, or link to answers of non-php questions etc.