nday, December 17, 2001 10:07 PM
Subject: [PHP] How deep can I go with embedded if s.
> Hello All,
> Is anybody aware of any limitations of php on embedded if
> ..else statements?
> For example:
>
> if ($a>$b) {
> if ($c>$d) {
>
Well, I just made a test program that nested 1000 if() statements and
it worked.
Just make sure you close all your curly brackets correctly.
IMHO, a large number of nested if else elseif statements indicate
poor programming design. Sometimes they are necessary, but usually
can be simplified
Hello All,
Is anybody aware of any limitations of php on embedded if
..else statements?
For example:
if ($a>$b) {
if ($c>$d) {
this();
} else {
if ($gg==$dd) {
echo 'ladooo';
} else {
echo '
3 matches
Mail list logo