有没有办法让这个看起来更有条理?
if (!isset( $par2 ) && !isset( $par3 )) {
$where = "lvlOne = '".$par1."'";
} elseif(isset( $par2 ) && !isset( $par3 )) {
$where = "lvlOne = '".$par1."' AND lvlTwo = '".$par2."'";
} elseif(isset( $par2 ) && isset( $par3 )) {
$where = "lvlOne = '".$par1."' AND lvlTwo = '".$par2."' AND lvlThree = '".$par3."'";
}