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

Pubblicato il: 05 dicembre 2017
sul canale di: 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.


In questa pagina del sito puoi guardare il video online 20. PHP Array Functions-7 | array_key_exists , array_keys , array_map | ATIBlog della durata di ore minuti seconda in buona qualità , che l'utente ha caricato ATIBlog 05 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 448 volte e gli è piaciuto 4 spettatori. Buona visione!