<?php $array = [ "{contact_firstname}" => "C Client", "{contact_firstname}" => "C Client", "{contact_lastname}" => "N New", "{contact_email}" => "cn.clientnew@gmail.com", "{client_company}" => "", "{client_phonenumber}" => "34567", "{client_country}" => "Finland", "{client_city}" => "dfgh", "{client_zip}" => "9876", "{client_state}" => "wb", "{client_address}" => "sdfghjk" ]; foreach ($array as $key=>$item){ $array[trim($key, "{}")] = $item; unset($array[$key]); } print_r($array);
You have javascript disabled. You will not be able to edit any code.