D
D
Dmitry Kim2016-05-15 20:28:05
Yii
Dmitry Kim, 2016-05-15 20:28:05

What was wrong with ArrayHelper::index before Yii2 2.0.8?

Until version 2.0.7, the documentation described the action of a function indexwith three attributes - $array, $key, $groups, although in the helper itself the entire branch of version 2 was with two - $array, $key.
So what was the matter, if only in version 2.0.8 such a simple code with three attributes was implemented? Why was there a discrepancy between the documentation and the code? Wanted to implement, but forgot?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-05-15
@kimono

This is Yii.
In general, just look at the commit history. From this commit, the third parameter appeared:
https://github.com/yiisoft/yii2/commit/ef8b0a2be0f...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question