samedi 7 mars 2015

PHP What am I doing wrong?

I'm trying to use PHP to detect certain languages. However, no matter what, it only echos "FR" I don't know why.



<?php
$lang = "en";
if ($lang == "fr" OR "nl") {
echo "FR";
} else {
echo "Nope";
}
?>

Aucun commentaire:

Enregistrer un commentaire