Re: Simpler way to validate form fields? [message #179798 is a reply to message #179789] |
Wed, 05 December 2012 11:49 |
M. Strobel
Messages: 386 Registered: December 2011
Karma:
|
Senior Member |
|
|
Am 05.12.2012 01:07, schrieb Jerry Stuckle:
> In most cases I prefer isset() over empty - an array element may be set but may not
> contain data. Those can be two different errors.
Same here. I think you should always use isset() in the first place, because clean
code does not access unset variables.
And if empty() is allowed depends on the case at hand.
/Str.
|
|
|