refactor the arr class to fix a few bugs.
This commit is contained in:
@@ -46,6 +46,8 @@ class Arr {
|
||||
*/
|
||||
public static function set(&$array, $key, $value)
|
||||
{
|
||||
if (is_null($key)) return $array = $value;
|
||||
|
||||
$keys = explode('.', $key);
|
||||
|
||||
while (count($keys) > 1)
|
||||
|
||||
Reference in New Issue
Block a user