Mehmet,

If you can keep the scope ({and}) correct then you will have no problems.
However, it will get kinda slow after going deep enough.

chuck

----- Original Message -----
From: "Mehmet Kamil ERISEN" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, 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) {
>             this();
>            } else {
>              if ($gg==$dd) {
>                  echo 'ladooo';
>                            } else {
>                  echo 'baboooo';
>                    }
>             that();
>            }
>         if ($e<$f) {
>            tthis();
>           } else {
>            tthat();
>            }
>    else {
>     echo "Oooops";
>
>         }
>
> would this work,
>
>
> =====
> Mehmet Erisen
> http://www.erisen.com
>
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to