The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
When the nested while returns false, it fails the parent while loop as well.
Any thoughts?
$stringa = "Volume 5 -||- Issue 1 -||- Article 1";
$array = explode(" -||- ",$string); # Create array.
$stringb = implode(" -||- ",$array); # Put it back together.
Mind if I ask how you sorted the first problem (just curious)?
It works, but if anyone knows of a better way to do it, please let me know!
I have some strings, and I need them turning into arrays, e.g.:
Volume 5 -||- Issue 1 -||- Article 1
--> $array['Volume 5']['Issue 1']['Article 1'] = array()
Volume 5 -||- Issue 1 -||- Article 2
--> $array['Volume 5']['Issue 1']['Article 2'] = array()
But they're not always the same depth of array, e.g. I might have:
Volume 5 -||- Issue 1 -||- Subsection A -||- Article 1
--> $array['Volume 5']['Issue 1']['Subsection A']['Article 1'] = array()
Any thoughts?
Is the code small enough to paste here?
When the nested while returns false, it fails the parent while loop as well.
Any thoughts?