lundi 27 mars 2017

PHP syntax error, unexpected 'elseif' [duplicate]

This question already has an answer here:

I get this error:

Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in C:\...\functions.php on line 6

This is the whole content of functions.php:

<?php
// prints the suitable string based on the chosen language
function lecho ($cs,$sk,$en) {
    global $lang;
    if ($lang=="cs") echo $cs;​
    elseif ($lang=="​sk") echo $​sk;​
    elseif ($lang=="​en") echo $​en;​​ // line 7
}
?>

What's wrong? This seams like such a basic thing!

Aucun commentaire:

Enregistrer un commentaire