$mime = mime_by_ext('jpg'); echo $mime; // Output: "image/jpeg"
$mime = mime_by_ext('pdf'); echo $mime; // Output: "application/pdf"
$mime = mime_by_ext('txt'); echo $mime; // Output: "text/plain"It is not clear which package library is being used for this function as it is a built-in function in PHP.