NYCPHP Meetup

NYPHP.org

[nycphp-talk] Making an array from a list item?

leam at reuel.net leam at reuel.net
Tue May 31 13:12:21 EDT 2005


The line $hntr is in a text file that is included. I'd like to create an array $hntr from, for example, list item $skills[4] which is hntr. 

Once $hntr is an array the elements are not going to become arrays. But the elements are keys for other arrays.

What I'd like to do is build the array $htnr from a database, not a text file.

Does that make more sense? Neither brain cell is particularly energetic at the moment, sorry. I think it's time for a couple hours break and then back to it.

ciao!

leam


On Tue, May 31, 2005 at 12:53:11PM -0400, Joseph Crawford wrote:
> Leam,
> 
> how is your database structure setup i mean what is it you want a single 
> dimensional array or a 2 dimensional array?
> 
> i see you have this currently
> 
> $hntr = array( "ambsh", "anmltn", "fshg", "sknng", "stlth", "srvl", "trkng", 
> "trlsgns", "trps" );
> 
> are the values stored in the db and you just want them pulled into an array?
> 
> are each of the values above going to be an array itself?



More information about the talk mailing list