Re: [PHP] creating of multi dimensional arrays with unknown depth

2005-07-11 Thread Richard Lynch
On Mon, July 11, 2005 10:56 am, Ben-Nes Yonatan said: > Hi all! > > I got a string which include information for categories that I need to > build, the string is built like this: > $string = "val1~~val2~~val3~~val4~~val5" > > Now, I want to create from this string a multi dimensional array an

[PHP] creating of multi dimensional arrays with unknown depth

2005-07-11 Thread Ben-Nes Yonatan
Hi all! I got a string which include information for categories that I need to build, the string is built like this: $string = "val1~~val2~~val3~~val4~~val5" Now, I want to create from this string a multi dimensional array and not one dimension array as explode('~~', $string) will give me.