Hi,
leider kann ich dir nicht ganz folgen???
Schau dir noch mal an, worueber deiner foreach-Schleife laeuft.
Wenn dir das nicht merkwuerdig vorkommt, dann schau noch mal mit print_r nach, was preg_match_all dir geliefert hat.
MfG ChrisB
-- 
„This is the author's opinion, not necessarily that of Starbucks.“
  „This is the author's opinion, not necessarily that of Starbucks.“
 nicht angemeldet
 nicht angemeldet