Actually nesting is like this:
PHP Code:
if (blah == blah) {
if (foo == bar) {
doFooBar();
}
else if (a == b) {
doFoolessBar();
}
}
else {
doOtherthings();
}
Notice the
PHP Code:
if (foo == bar) {
doFooBar();
}
else if (a == b) {
doFoolessBar();
}
is nested inside the
PHP Code:
if (blah == blah) {
?