Hi, I've coded a function that returns 1, 2, 3 or -1. It does it
correctly, however when evaluating the result of such function in a
switch() it fails:
switch(my_function("lalala")) {
case 1:
[...]
The way it works is:
my_function("lalala");
switch(my_function($rc)) {
case 1:
[...]
Is it the expected behavior?
--
Iñaki Baz Castillo
<ibc(a)aliax.net>
Show replies by date