how te read a integer as a variable in php code example Example: php to int $num = "3.14"; $int = (int)$num;