K
K
Konstantin Zhikhor2018-08-29 15:58:41
Yii
Konstantin Zhikhor, 2018-08-29 15:58:41

How to store numbered array in YII 2?

Help me please . I need to store a numbered array in a database.
that is, like this:

[
[0] => 'Item 1',
[1] => 'Item 2',
[2] => 'Item 3',
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-08-29
@webinar

Lots of options and all of them are not particularly related to yii. It's a matter of database architecture. Can be stored as json in one cell, can be stored in a separate table like id | text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question