It can be usefull but also add to confusion and maintenance issues.
I would sugest as someone else has always return the same type.
Or better in my opinion have 2 functions (maybe add county_names_by_ids()) Of course this new routine could just call the orginal and return a populated array saving code duplication. It would be pretty much the same code you have now just in 2 routines.
In reply to Re: function call / return philosophies
by acomjean
in thread function call / return philosophies
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |