View Single Post
Old 05-27-2009, 04:40 PM  
DigitalPimp
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Los Angeles, CA
Posts: 512
Code should have read:

Code:
$string = 'a,b,c,d';

if(eregi("(a)|(c)|(adf)",$string,$matchedtext)){ 
echo $matchedtext[1]; // This returns an "a" which I want
echo $matchedtext[2]; // This is empty, I want it to return a "c"
}
DigitalPimp is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote