Preg Matching Contents Of An Element

$url_contents = file_get_contents($url);
preg_match('/<input type="hidden" name="form_build_id" value=(.*?)" /', $url_contents, $matches);
$the_value = $matches[1];

Hopefully this helps someone out there...

Comments

Popular posts from this blog

Chat Tu Chak Market

Rainy Saturday