Ono być troszkę chytry ale I obliczać ono chytry.
ob_start ();
var_dump ($newEntry);
$newEntryDump = ob_get_clean ();
$newEntryDumpStart = strpos ($newEntryDump, '
http://gdata.youtube.com/feeds/videos/')+38;
$error ["videoid"] = substr ($newEntryDump, $newEntryDumpStart
, 11);
ob_end_flush ();