I'm having a real brain freeze moment here. I have an array of objects that I need to convert into just an array of properties. What would be the best approach to turn this;
[
{
user_id: 302
},
{
send_user_email: true
},
{
send_admin_email: true
}
]
into this;
[
user_id: 302,
send_user_email: true,
send_admin_email: true
]
associative arraysinPHP, they don't exist inJavaScript, therefore something like[user_id: 302]is not a valid array inJavaScript.