The switch won't work properly with a function call, unless that function call is non-parametrized (and then will not relate directly to the switched value). For that you need to continue using an if/else handle so that you can give it the variable (this is honestly pointless):
print '$a is numeric';
While it will work, its easier to just write
Logically the switch works on the value of a variable, not directly on it. Thats why we specify it for the case. PHP (unlike most languages) will actually allow strings in its switch statements.
Also note that switches are loose in comparison.
$a = 4;
print '$a is 4';
That will print that $a is 4.
I should clarify as well, I consider the loose comparison to be a negative.