Re: Help on number matching function
| From: | Ken Robinson | Date: | Fri, 16 Sep 2011 14:00:19 +0000 |
| Subject: | Re: Help on number matching function | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314901@lists.php.net to get a copy of this message | ||
At 08:36 AM 9/16/2011, Dare Williams wrote:
Dear PHP Group, I need a Function of any category in either PHP or MySQL RDBMS customize Function, Class, Methods or anything that could help me compare a particular set of number and return their matching result. e.g If I have a 5 Digits set of number and need to match it with another set of five digits and return how many numberTurn your sets of number into an array and then use the function array_intersect, http://php.net/array_intersect Kenare match and the figures that are match. 1. (62,39,47,25,14) - (14,39,62,25,47) - match 5 (all) 2. (55,11,27,62,39) - (66,39,12,13,27) - match 2 (27,39) 3. (20,04,56,17,16) - (16,01,17,04,79) - match 3 (16,17,04) Any Help will be appreciated. Thank you.