194789/how-to-find-array-dictionary-value-using-key
I want to use the key to locate the value in an array.
Like this:
$array=('us'=>'United', 'ca'=>'canada'); $key='ca';
How can I have the value 'canada'?
Hello @kartik, Using array_search() and unset, try the following: if (($key = ...READ MORE
Given this array: $inventory = array( ...READ MORE
Take a look at this code: $GET = ...READ MORE
Hello @kartik, This should work fine $arr = array( ...READ MORE
Hello, Use PHP's $_POST or $_GET superglobals to retrieve the value of ...READ MORE
I have an array called reverse array ...READ MORE
The callback function in array_filter() only passes in the ...READ MORE
I want to provide a list of ...READ MORE
Since the 'second dimension' could be just ...READ MORE
Hello @ abhittac, You have create the array everytime the ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.