has()
has(string $key) : boolean
Check if the current execution environment contains the given entry.
Parameters
string | $key | the key to be searched |
Throws
- \InvalidArgumentException
the given key is not valid
Returns
boolean —true whether the given key is defined