Hi Does anyone know an easy way to match patterns in two different arrays like so... <?php // INPUT DATA $old_array = array("a", "b", "c", "d", "e", "f", "g", "c"); $new_array = array("c", "d", "e", "f", "g", "a", "b", "c"); // OUTPUT DATA // value [corresponding 'array key' of $old_array] // $new_array starts with 'c'... // c [7] // d e f [3] [4] [5] // g [6] // a b c [0] [1] [2] ?> PHP: Many thanks for any help...
following links might be useful.. http://www.phpfreaks.com/forums/index.php?topic=239821.0 http://stackoverflow.com/questions/683702/how-do-you-perform-a-pregmatch-where-the-pattern-is-an-array-in-php