Regex match and mulitple replace info

Discussion in 'PHP' started by Big 'G', Oct 19, 2006.

  1. #1
    I have a function to find and replace multiple items and cannt for the life of me find it:mad: or get my head around how to do it:confused:
    Basically if i do a
    preg_match_all($match,$haystack,$matches);

    how can i loop through the $matches and run a replace using the $matches[] as offset.

    can any one offer any help driving me nuts
     
    Big 'G', Oct 19, 2006 IP