setArrayPath() public static method

(['a' => ['b' => 5]], 'a.b', 6) = ['a' => ['b' => 6]]
public static setArrayPath ( &$array, string $dotPath, mixed $value ) : mixed
$dotPath string
$value mixed
return mixed
コード例 #1
0
ファイル: AbstractType.php プロジェクト: jarves/jarves
 public function mapValues(array &$data)
 {
     Tools::setArrayPath($data, $this->getFieldDefinition()->getId(), $this->getValue());
 }