ciber Posted December 23, 2008 Share Posted December 23, 2008 I am busy creating a function to grab data from YouTube's API, but the one thing for the title is not grabbing any data. I am using a preg_match_all, and I think there is something wrong with my pattern: $pattern = '<title type=\'text\'>(.*)</title>'; if(preg_match_all($pattern, $data, $title)) {$title = $title[1][0];} can anyone see anything wrong? Quote Link to comment https://forums.phpfreaks.com/topic/138147-solved-problem-with-match_preg_all/ Share on other sites More sharing options...
ciber Posted December 23, 2008 Author Share Posted December 23, 2008 solved Quote Link to comment https://forums.phpfreaks.com/topic/138147-solved-problem-with-match_preg_all/#findComment-722292 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.