20. PHP Array Functions-7 | array_key_exists , array_keys , array_map | ATIBlog

Published: 05 December 2017
on channel: ATIBlog
448
4

PHP Array functions part 7 [HINDI]

bool array_key_exists ( $key, $array );
array_keys ( $input [, $search_value [, $strict]] );
array array_map ( callback $callback, array $array1 [, array $array2...] );

1. array_key_exists()
This function is used to check for a key in a given array and returns true if present otherwise it returns false.
First parameter is the key , that will be checked.
Second parameter is the input array I which the key will be checked.
Returns boolean.

2. array_keys()
This function is used to check for the values and returns the resulting array of keys , where it finds the value.
First parameter is the input array.
Second parameter is the search value.
The third optional parameter is boolean(strict) to check for the values strictly or not.(== or ===)

3. array_map ()
This function is used to return an mapped array after applying the callback function to the first array.
First parameter is the callback function to be applied on the first array.
Second parameter is the input array.
Third, fourth, and so on, arrays are optional.


On this page of the site you can watch the video online 20. PHP Array Functions-7 | array_key_exists , array_keys , array_map | ATIBlog with a duration of hours minute second in good quality, which was uploaded by the user ATIBlog 05 December 2017, share the link with friends and acquaintances, this video has already been watched 448 times on youtube and it was liked by 4 viewers. Enjoy your viewing!