Get the details of current theme in wordpress?

Using wp_get_theme function we get the details of current theme.

$theme    = wp_get_theme();

file_put_contents(“newtestt.txt”,print_r($theme, “true”));

// Specific theme

$theme    = wp_get_theme(‘storefront’);

file_put_contents(“newtestt.txt”,print_r($theme, “true”));