algorythm question

From: Date: Sat, 21 Sep 2002 15:10:39 +0000
Subject: algorythm question
Groups: php.general 
Request: Send a blank email to php-general+get-117096@lists.php.net to get a copy of this message
consider there are categories and these have IDs like below: 1, 2, 4, 8, 16, 32, 64... if some data belongs to more than 1 category for exemple 4 and 32, its category ID will be 36, the sum of cat. IDs. i guess this is used widely in programming. so, how can i resolve the original IDs. i mean what kind of script can tell me what+what1+what2...whatN = 79? __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com

« previous php.general (#117096) next »