Re: [PHP] Self generating variables/arrays

2006-11-26 Thread Richard Lynch
On Sun, November 26, 2006 3:45 pm, jekillen wrote: > 1. one large array exploded around \n > 2. then a loop looks for '\n' items > and records the index number of these items > as well of keeping a count: ($c) > 3. Since $c is a variable it can represent a different > number each tim

Re: [PHP] Self generating variables/arrays

2006-11-26 Thread jekillen
On Nov 26, 2006, at 5:11 AM, Stut wrote: jekillen wrote: I am writing some code that will format results of a search for display. I need to split an array into several different arrays but I won't know before hand how many, so, I am looking for a way to dynamically generate arrays for this

Re: [PHP] Self generating variables/arrays

2006-11-26 Thread Richard Lynch
On Sun, November 26, 2006 12:19 am, jekillen wrote: > I am writing some code that will format results of a search for > display. > I need to split an array into several different arrays but I won't > know > before hand how many, so, I am looking for a way to dynamically > generate arrays for this p

Re: [PHP] Self generating variables/arrays

2006-11-26 Thread Stut
jekillen wrote: I am writing some code that will format results of a search for display. I need to split an array into several different arrays but I won't know before hand how many, so, I am looking for a way to dynamically generate arrays for this purpose. My present direction is to use the fol

Re: [PHP] Self generating variables/arrays

2006-11-26 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-11-25 22:19:05 -0800: > Hello; > I am writing some code that will format results of a search for display. > I need to split an array into several different arrays but I won't know > before hand how many, so, I am looking for a way to dynamically > generate arrays for this

Re: [PHP] Self generating variables/arrays

2006-11-25 Thread Larry Garfield
If eval is the answer, you're asking the wrong question. You haven't given enough information to really say the best way to do what it is you're doing. However, I suspect that explode() and arrays of arrays (i.e., $a[1][2]) will do what you need to do much better than messing around with eval.

[PHP] Self generating variables/arrays

2006-11-25 Thread jekillen
Hello; I am writing some code that will format results of a search for display. I need to split an array into several different arrays but I won't know before hand how many, so, I am looking for a way to dynamically generate arrays for this purpose. My present direction is to use the following cod