I'm new to coding and I'm not really sure how to rewrite this line without the [].
Parse error: syntax error, unexpected '[' in header.php on line 18
<img 
    style="margin-top: 9px;" 
    alt="" 
    src="<?php echo (wp_get_attachment_image_src( get_theme_mod( 'custom_logo' ), 'full' ))[0]; ?>" 
    width="<?php echo get_custom_header()->width; ?>" 
    height="<?php echo get_custom_header()->height; ?>"
>
Any help would be appreciated.
 
     
     
    