All pastes #729756 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-08 09:05 UTC
rendered paste body
3C?php

$html = file_get_contents("http://www.urbandictionary.com/define.php?term=sniper");
$html = str_replace("\n", "", $html);
preg_match("/<div class=\"def_p\">(.*?)<\/div>/", $html, $quote);
$ex = explode("</p>", $quote[0]);
$d = trim(strip_tags($ex[0]));
$e = trim(strip_tags($ex[1]));

// D is the definition, E is the example. have fun

?>