Why not put them into an array then look at array functions such as unique checking etc...
Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] If you need PHP hosting with an experienced support team 24/7 then email me today. On Fri, 15 Nov 2002, John Fishworld wrote: > Hi, > > I've got some variable variables which i need to check that they are not > the > same ! > There can be up to 9 of them ! > > for ($i = 1; $i <= $city_only_one; $i++) { > $citydb = "stellen_city_".$i ; > $new_city_db.$i = $$citydb; > > and what i need to do is check that > $new_city_db1 does not equal $new_city_db2 or 3 etc > and then > $new_city_db2 does not equal 3 + 4 etc... > } > > Whats the best way of doing this !?? > > > Any help appreciated > thanks > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php