AB
Size: a a a
AB
DS
AB
DS
DS
T
T
СП
getValueByPath()
и setValueByPath()
в ArrayHelper
?RM
AM
СП
S
СП
RM
S
S
S
public static function setValueByPath(array &$array, $path, $value, $delimiter = '.'): void
S
$users = [
'smitty.boy' => [
'city' => 'San-Francisco',
// ...
],
// ...
]
В таком случае getValueByPath($users, 'smitty.boy.city')
привело бы к какому-нибудь null, а решением было бы getValueByPath($users, 'smitty.boy.city', '/')
СП
S