A
A
aopil2020-04-23 17:36:04
PHP
aopil, 2020-04-23 17:36:04

How to search by array key and get value?

Tell me how to search by array value and get the value?

There is an array:

$array = array(
        'ABW' => 'Aruba',
);


You need to get Aruba by ABW.

Something could not find a php function for such a search.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2020-04-23
@FanatPHP

To do this, you need to study the relevant section of the documentation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question