czukoman20 Posted April 29, 2009 Share Posted April 29, 2009 I am trying to make the match preg_match('/<span id=HIL_c><font color="(.*?)"><b >\(.*?)<\/b>/', $contents, $output); $output2 = $output[0]; echo $output2; when it does this... I get nothing.. but if i were to put the color and the info in the other area... It will display it no problem, so the preg match is seeing the match. I'm pretty sure it has something to do with my output, but i'm out of options .. so please help. much appreciated Link to comment https://forums.phpfreaks.com/topic/156195-solved-preg-match-2-s-only-the-first-one-shows-please-help/ Share on other sites More sharing options...
Ken2k7 Posted April 29, 2009 Share Posted April 29, 2009 You can always check the output array. var_dump($output); Link to comment https://forums.phpfreaks.com/topic/156195-solved-preg-match-2-s-only-the-first-one-shows-please-help/#findComment-822288 Share on other sites More sharing options...
czukoman20 Posted April 29, 2009 Author Share Posted April 29, 2009 It says Null... What does that mean? If i put the info in there it says. String(52) then the info Link to comment https://forums.phpfreaks.com/topic/156195-solved-preg-match-2-s-only-the-first-one-shows-please-help/#findComment-822296 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.