Array propagate
Complete the array with the keys as part of the value
Start file
$arr = [
'one_option' => '',
'other' => '',
'created_at' => '',
'updated_at' => ''
]
End file
$arr = [
'one_option' => $row['one_option'],
'other' => $row['other'],
'created_at' => $row['created_at'],
'updated_at' => $row['updated_at']
]
View Diff
2,6c2,6 < 'one_option' => '', < 'other' => '', < 'created_at' => '', < 'updated_at' => '' < ] \ No newline at end of file --- > 'one_option' => $row['one_option'], > 'other' => $row['other'], > 'created_at' => $row['created_at'], > 'updated_at' => $row['updated_at'] > ]
Solutions by @rax0m:
Unlock 8 remaining solutions by signing in and submitting your own entry
VimGolf