Array Help

From: Date: Mon, 14 Mar 2005 23:07:43 +0000
Subject: Array Help
Groups: php.general 
Request: Send a blank email to php-general+get-210727@lists.php.net to get a copy of this message
Greets, I'm running into the problem of not having a server that gives me database access or ability to use files to store my data ... Yeah, I know, it sucks. Anyway ... My page has a number of profiles about people involved with my organization and all the profiles load into a set appearance. I have all the information about each person stored in individual arrays (if there's an easier way to do this w/o database or files, I'd love to hear it) ... anyway, I pass a variable through the URL which causes the array info to load, but I use an if statement for EVERYONE which makes my work way too tedious ... The variable I pass is the same value as the name each person's array (the variable is stored in the link) so, I'm curious if there's a way I can use the variable as the array name and cut out those tons of if statements.

« previous php.general (#210727) next »