For most of my PHP career, I've used isset() to determine if an array has a certain key. $foo = array(); echo isset($foo['bar']) ?
確定! 回上一頁