note 75893 deleted from control-structures.else by nlopess

From: Date: Wed, 20 Jun 2007 17:16:27 +0000
Subject: note 75893 deleted from control-structures.else by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-127836@lists.php.net to get a copy of this message
Note Submitter: Eric ---- <? if ($a == 1): /* nested if */ if ($b == 2) echo '2'; else: /* other code */ endif; ?> This is an older example of an if statement I believe this was used in php 3? I stated with for php 4. This would be the above statement up to date <?php if ($a == 1) { $url = 'http://www.linksback.org'; if ($b == 2) { echo '2'; } } else { $url = 'http://www.hendersonpoolservice.info'; } ?>

« previous php.notes (#127836) next »