Enclosure custom field

// To use the enclosure custom field and get the url of the uploaded video
$string_to_divide = get_post_meta(44, 'enclosure', true);

$accepted_file_types = array('.flv','.f4v');

foreach($accepted_file_types as $type){
$char_pos = strpos($string_to_divide, $type);
if ($char_pos != ''){
$divided_string = substr_replace($string_to_divide, "", ($char_pos +4));
echo "Divided String = $divided_string" . '<br>';
}
}