ternary operator
| From: | G M | Date: | Mon, 18 Apr 2011 04:43:16 +0000 |
| Subject: | ternary operator | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51926@lists.php.net to get a copy of this message | ||
I should mention the more general use cases of the function I had made:
ifset($arr, $key1, $key2, ..., $keyN, $default)
actually, this function checks with array_key_exists, and not just isset. Meaning, if the value
exists at that array key path and is null, it is used, otherwise, $default is used.