I agree with your approach but would try to avoid using the $card->country call twice
There is basically one thing that needs to be taken into account when using a method call and that is whether or not the method is memory intensive or not.
I like clarity but the overhead savings is something to seriously consider... Thank you for the suggestion.
In reply to Re^3: How Much Is Too Much (on one line of code)?
by Herkum
in thread How Much Is Too Much (on one line of code)?
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |