I am creating an array as such, splitting a string by every -
:
$array = explode('-', $mystring);
I know I can then implode the array back into one string, eg:
$mystring = implode('-', $array);
But I first need to do something with the 3rd array element and reinsert it into the array before re-concatenating it. Here I am a bit stuck - I cant find any good resources showing this online.
Can anyone point me in the right direction?