I have been trying to explode a string twice then imploding it. Here's what I mean by exploding it twice. So I have a string
:0,0,1,0,0:0,0,0,0,0:
I want to edit the third zero and change it to one.
How do I do that?
I"ve tried exploding the : then exploding the , but then Idk how to implode it.
I have tried this code but I can't implode the :
$exploding = ':0,0,0,1,0,0:0,0,0,0,0:';
$explode = explode(':', $exploding);
$explodes = explode(',', $explode[1]);
$explodes[$part] = $type;
$explodes = implode(',', $explodes);