I'm doing my first shortcode for WordPress. The function that I'm doing will return different translation of a string depending on the parameter se for swedish or en for english. So I'm going to use a simple if statement or a switch statement, but which of the two option below are the best and what's the difference between them? Should I use $a or language to check the in parameter? The default value is se for swedish.
$a = shortcode_atts( array(
'language' => 'se',
), $atts );
or
extract(shortcode_atts(array("language"=>"se"),$atts));