I'm using the switch function and I need to have the number of cases in that switch returned to me. I don't know if there is a way of doing this:
switch ($page) {
case 1:
case 2:
case 3:
default:
}
What I'm looking for if a way of returning 4 (number of cases in the switch). Is there any way of doing this??
Thank you.