Sortie du snippet PHP "Validation de type entier d'une variable PHP"
Environnement :
- Strangebuzz Snippet VM : 6.4.9
- PHP : 8.3
Sortie du code exécuté :
true is an integer, final var: 1
false is NOT an integer
'0.0' is NOT an integer
'foo' is NOT an integer
array (
'my' => 'array',
) is NOT an integer
555 is an integer, final var: 555
0 is an integer, final var: 0
1 is an integer, final var: 1
-1 is an integer, final var: -1