I'm using a wordpress plugin called Movie Poster which grabs a movie's info from imdb and displays it in a post. How do I grab just the first Production Co before the first comma? I'm confused on how this code works. Here's the code which grabs all the production co:
$arr['productions'] = array();
foreach($this->match('/<a.*?>(.*?)<\/a>/ms',
$this->match('/Production Co.?:(.*?)(<\/div>|See more)/ms', $html, 1)
, 1) as $m)
array_push($arr['productions'], $m);`
Thanks for your time