Type Cast en utilisant int php
// Type cast using int
echo (int)$num, "\n";
Irfan
// Type cast using int
echo (int)$num, "\n";