It was a little tricky but I figured it out.
ob_start();
var_dump($newEntry);
$newEntryDump = ob_get_clean();
$newEntryDumpStart = strpos($newEntryDump, '
http://gdata.youtube.com/feeds/videos/')+38;
$error['videoid'] = substr($newEntryDump,$newE
ntryDumpSt
art,11);
ob_end_flush();