I am having a problem with my code. I am trying to make an if statement. example:
// 1st statement
if( $day1 && $day2 && day3 == null){
echo " A"
}
// 2nd statement
elseif ($day4 && $day5 == null) {
echo "B"
}
// 3rd statement
elseif($day6 && day7 == null) {
echo "C"
}
else {
echo "E"
}
if the first statement is true, the output will be: A since if statement will stop if the first statement equals true, I cannot continue to the second statement result.
what I would like to achieve is that if the 1st 2nd, and 3rd are true the result will be:
A B C
for other condition if 1st and 3rd are true the result will be: A C
and so on.