1) { $variable = substr(trim($variable[0]), 1); $variable = '&'.$variable.'='.api_utf8_encode(get_lang($variable)).' '; echo $variable; } }