Re: Multiple values per variable

From: Date: Wed, 12 Mar 2003 19:32:13 +0000
Subject: Re: Multiple values per variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139375@lists.php.net to get a copy of this message
user1 abc $user1_array=array(); array_push($user1_array, "a","b","c"); //check user_array $cat=""; for ($i=0;$i<count($user1_array);$i++) { $cat .= $user1_array[$i]; } echo "user1 ".$cat; /Jan "Erich Kolb" <ekolb@kolbsoft.com> skrev i meddelandet news:20030312045430.62469.qmail@pb1.pair.com... > I am working on some logic where users are categorized based on the results > from a few questions. So far everything is working properly, but I would > like to be able to assign multiple categories to each user. Any ideas on > how to accomplish this? > I am assuming that an array would be in order, but not to sure on the > syntax, or how to "explode" the array (eg. User is a member of $cat[1], > $cat[2], $cat[3], etc. > >

« previous php.general (#139375) next »