АГ
Size: a a a
АГ
СП
NO
T
СП
СП
NO
СП
АГ
get('a.b.c', ['a' => ['b' => ['c' => 1]]])
и потом set ($new, 'a.b.c', 1) приведет к тому, что в $new будет ['a.b.c' => 1], даже если там уже есть такая же структура как в исходном массиве.... такое себе это все.NO
T
x.y.z
, then the returned value would$array['x']['y']['z']
or $array->x->y->z
(if $array
is an object). If $array['x']
$array->x
is neither an array nor an object, the default value will be returned.x.y.z
, then its value will be returned['x', 'y', 'z']
.СП
x.y.z
, then the returned value would$array['x']['y']['z']
or $array->x->y->z
(if $array
is an object). If $array['x']
$array->x
is neither an array nor an object, the default value will be returned.x.y.z
, then its value will be returned['x', 'y', 'z']
.Note that if the array already has an element x.y.z, then its value will be returned instead of going through the sub-arrays.
АГ
СП
АГ
СП
АГ
АГ
СП
СП