Je voudrais savoir si le code suivant est correct:
CODE
<?php
if($test == 'toto' or 'tata') {
// instructions
}
?>
if($test == 'toto' or 'tata') {
// instructions
}
?>
En bref, doit-on obligatoirement réécrire if($test == 'toto' or $test == 'tata' or $test == 'titi') ou peut-on abréger avec un code du genre if($test == 'toto' or 'tata' or 'titi')
Merci d'avance ^_^
