A::update()
Update an array with a second array The second array can contain callbacks as values, which will get the original values as argument
A::update(array $array, array $update): array
Parameters
| Name | Type | Default |
|---|---|---|
| $arrayrequired | array |
no default value |
| $updaterequired | array |
no default value |
Return type
array
Parent class
Examples
$user = [
'username' => 'homer',
'email' => 'homer@simpsons.com'
];