I have a series of cookies which I read in as variables and explode into arrays. I then need to delete one of the awway elements and then re-assemble the cookie and write it out. What's the correct way to do this please?
For example, the cookie will read as
one|two|three|four|
if I explode this into $test_array I will get
$test_array[0] = 'one'
$test_array[1] = 'two'
$test_array[2] = 'three'
$test_array[3] = 'four'
I need to delete, say, the 'three' and end up with the cookie reading
one|two|four|
Thanks! Graham