Commit ab926df2 by Aviator-Coding

Update BaseArrayHelper.php

parent 0c112d85
...@@ -324,7 +324,7 @@ class BaseArrayHelper ...@@ -324,7 +324,7 @@ class BaseArrayHelper
* ['id' => '123', 'name' => 'aaa', 'class' => 'x'], * ['id' => '123', 'name' => 'aaa', 'class' => 'x'],
* ['id' => '124', 'name' => 'bbb', 'class' => 'x'], * ['id' => '124', 'name' => 'bbb', 'class' => 'x'],
* ['id' => '345', 'name' => 'ccc', 'class' => 'y'], * ['id' => '345', 'name' => 'ccc', 'class' => 'y'],
* ); * ];
* *
* $result = ArrayHelper::map($array, 'id', 'name'); * $result = ArrayHelper::map($array, 'id', 'name');
* // the result is: * // the result is:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment