A voir également:
- Simplifier un if ?
- Simplifier une image ✓ - Forum Photoshop
- If exist - Forum Java
- The realtek network controller was not found. if deep sleep mode is enabled please plug the cable ✓ - Forum Pilotes (drivers)
- Php if multiple conditions ✓ - Forum PHP
- The Realtek Network Controller was not found. - Forum Pilotes (drivers)
2 réponses
Salut,
https://www.php.net/manual/fr/function.in-array.php
<?php
$allowed = array(1866, 3085, 2945, 1385);
if(in_array($id, $allowed)) {
}
https://www.php.net/manual/fr/function.in-array.php