RE: [PHP-DEV] Get value if set, or default
nl/ International PHP Magazine http://php-mag.net/ - On Mon, 2003-08-18 at 17:03, Griggs Domler wrote: > It's rare to find functionality that cannot be effectively implemented > in userl
[PHP-DEV] Get value if set, or default
It's rare to find functionality that cannot be effectively implemented in userland PHP code, but this appears to be one of them. The issue here is the capability to check if an array index (or variable) is set, if so, return its value, or return a passed in default value. This can be accomplished