check_key()
public function check_key( $key )
This method checks to see if a passed value is set and is not empty. If both conditions are met, the method returns true. Otherwise, the method returns false.
#
Arguments- $key
(string) (required) The variable to evaluate.
#
ExampleTake the following code:
In the example above:
- $check1 would equal true
- $check2 would equal false
- $check3 would equal false