Php array_key_exists () instance tutorial

Source: Internet
Author: User

Php array_key_exists () instance tutorial array_key_exists
("= 4.0.7, PHP 5" in PHP 4)

Array_key_exists-Check if an array exists in the key or index is considered

Description
Boolean array_key_exists (mixed $ key, array $ search)
Array_key_exists () returns TRUE if the given key is to set the array. The key is that any value may be an index of an array.

Parameters

Key
Value Check.

Search
Array and key check.


Return Value
Returns TRUE or FALSE.

Modify

Version description
5.3.0 this function cannot be used with objects. property_exists () should be used in this case.


Instance

Example #1 array_key_exists ()

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.