M
M
Max Payne2015-02-24 15:57:12
PHP
Max Payne, 2015-02-24 15:57:12

How to get all values ​​from an array?

There is an array - you need to form an array consisting of its values ​​( words ).
How to form an array consisting of the values ​​of another array?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
bkosun, 2015-02-24
@YardalGedal

Use array_flip

F
FanatPHP, 2015-02-24
@FanatPHP

You're displaying the keys of the wrong array.
Remember a simple rule: if some PHP function does not work correctly, then run to check your data that you slip into it.

Дмитрий, 2015-02-24
@thewind

Для смены "индекс => значение" на "значение => индекс" есть встроенная функция. Как правильно заметил FanatPHP ее можно легко отыскать в мануале.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question