I have a value in below format and i want to convert this key and value in implode form to insert value in database in mysql.
Array
(
[users_ids] =>
[key_name] => Total_Cubic_Metres
[value_name] => 3.46m³
)
Array
(
[users_ids] =>
[key_name] => Bedroom_Bassinette
[value_name] => 2
)
Array
(
[users_ids] =>
[key_name] => Bedroom_Bedside_Drawers
[value_name] => 2
)
Array
(
[users_ids] =>
[key_name] => Bedroom_Bedside_Table
[value_name] => 2
)
I have 2 COLUMN in MYSQL "key" and "value" and store the above value in this field in implode form something like this key:Total_Cubic_Metres,Bedroom_Bassinette,Bedroom_Bedside_Drawers,Bedroom_Bedside_Drawers,Bedroom_Bedside_Table
Value:3.46m³, 2, 2,2