I have an array like this,
$ptJson = {
["phoneSMS1"]=> "mobile",
["phoneSMS2"]=> "mobile",
["phoneSMS3"]=> "mobile",
["phoneSMS4"]=> "mobile",
["phoneSMS5"]=> "main"
}
And I have to delete the phoneSMS3, so I used unset to unset the key
unset($ptJson['phoneSMS3']);
It worked great.! Now I want to move rest keys level-up by one, but don't know how. Searched but have no luck.
So, how to find the rest array keys after phoneSMS3?
phoneSMS4tophoneSMS3,phoneSMS5tophoneSMS5, etc?{}.