PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
switch ($infoa)
{
case "1a"
break;
case "2a"
break;
case "3a"
break;
if a='a' {
}
switch ($infob)
{
case "1b"
break;
case "2b"
break;
case "3b"
break;
}
} else
{
plain info
}
}
?>
I have checked my manual but am not to sure 'cos it doesn't say anything about this particular scenario ???
I am not too worried about the syntax but more about the structure and workings of it all....
yes, b'cos I am currently getting error's with my code and was wondering whether it is possible to be done in the first place; before triple checking my code to see whether it's me or php
<?php
$infoa = '';
$infob = '';
$a = 'a';
switch ($infoa) {
case '1a':
break;
case '2a':
break;
case '3a':
break;
default:
echo '<p>default for first switch</p>';
if ($a = 'a') {
switch ($infob) {
case '1b':
break;
case '2b':
break;
case '3b':
break;
default:
echo '<p>default for second switch</p>';
}
} else {
//plain info
}
}
?>