Please vet this code and help me with how to declare '.($a['link']).' variable such that i can echo its content in single.php
function mp3_download_link_att($atts, $content = null) {
$default = array(
'link' => '#',
);
session_start();
global $post;
$title = get_the_title($post->ID);
$a = shortcode_atts($default, $atts);
$content = do_shortcode($content);
return ' <h2>Download '.$title.' Mp3 Audio</h2><p style="text-align: center;"><strong>Download Mp3 audio, listen and share this amazing song for free and stay happy.</strong></p><figure class="wp-block-audio"><audio class="audioPlayer" src="'.($a['link']).'" controls="controls"></audio></figure><center><p class="song-download"><a rel="nofollow" id="dlf" class="button download" href="'.($a['link']).'"><span class="fa fa-download"></span> DOWNLOAD '.$content.' MP3 <span class="fa fa-music"></span> </a></p></center>';
}
$_SESSION['myduration'] = ($a['link']);
add_shortcode('mp3download', 'mp3_download_link_att');