It’s as simple as this :
$array[$key];
More Related Contents:
- count how many duplicate keys are in array of objects?
- PHP – File to Associative Array with 1 key and two values attached
- Filter array by its keys using an array of allowed keys
- How to combine two arrays together?
- Replace keys in an array based on another lookup/mapping array
- How to re-index the values of an array in PHP? [duplicate]
- Remove all elements from array that do not start with a certain string
- Characters allowed in php array keys?
- Get the keys for duplicate values in an array
- PHP get both array value and array key
- PHP – Find parent key of array
- How to filter an associative array comparing keys with values in an indexed array?
- How to access first level keys of a 2d array with a foreach loop? [duplicate]
- Add elements to array which has gapped numeric keys to form an indexed array / list
- What is the max key size for an array in PHP?
- Custom key-sort a flat associative based on another array
- Rename key in each row of a 2d array
- Is there a way to change all keys in a flat indexed array to the same string (“Name”)? [closed]
- Find a matching or closest value in an array
- Restructure multidimensional array of column data into multidimensional array of row data [duplicate]
- Shorthand for arrays: is there a literal syntax like {} or []?
- PHP Get Highest Value from Array
- PHP compare array
- sum specific values in a multidimensional array (php)
- Unsetting array values in a foreach loop [duplicate]
- Warning: array_combine(): Both parameters should have an equal number of elements
- str_replace with array
- How to force Doctrine to update array type fields?
- Recreate original PHP array from print_r output [duplicate]
- How to convert an integer to an array in PHP?