V
V
Vitaly2017-04-17 18:25:29
PHP
Vitaly, 2017-04-17 18:25:29

How to create an associative array from a file?

Help me please !!!
There is a base.txt file with several lines. Each line looks like: blablabla=>blablabla
How can I use php to create an associative array of the form : key=>value from this file ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2017-04-17
@vitcorp

file() + explode()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question