if (strpos($videosJson, '<error>')) { preg_match('/<message>(.+?)<\/message>/', $videosJson, $match); show_error("<strong>$query</strong>: $match[1]"); }