<?php$string = 'http://www.youtube.com/watch?v=_BzLvFawauA&feature=rec-LGOUT-exp_fresh+div-1r-4-HM'; echo substr(parse_url($string, PHP_URL_QUERY), 2, 11);?>