Checking if the key exits in PHP’s array

It is possible to check if a key exists in a PHP array. This is done using array_key_exists method. This method accepts two values. First one is a variable that contains a key to check, and second one is the name of the array. This method will return true if the given key exists in the array, and it will return false if it is not there.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator