I have the following array:
$person = array('first_name' => 'Fred', 'last_name' => 'Flintstone');
I want to change/pad the keys so the array will end up as (note extra colons):
$person = array('::first_name::' => 'Fred', '::last_name::' => 'Flintstone');
For some reason I’m drawing a blank on the simplest way to do this
I don’t know the simplest way, but the quickest way off the top of my head would be to just loop through.
I guess you could even do