I have this following array:
$arr = [ 'demo_key1' => 'demoval1', 'demo_key2' => 'demoval2' ];
and, i need get this transformed array:
$arr = [ 'demo-key1' => 'demoval1', 'demo-key2' => 'demoval2' ];
So, i want replace _ to - figures, how can i do ?
I tried some examples on Stack Overflow about this for i could not do.
I really thank you very much for your helps.