I have an array called $eduAdd
and I'm adding a string to the beginning of it like this:
array_unshift($eduAdd, $userId);
This is the result:
Array
(
[0] => 3
[fieldId] => Array
(
[0] => 4
)
[educationTitle] => Array
(
[0] => g
)
[educationDegree] => Array
(
[0] => g
)
)
How can I rename [0] => 3
to ['userId'] => 3