convertion int php code example
Example 1: php to int
$num = "3.14";
$int = (int)$num;
Example 2: convert to int php
$myintvariable = intval($myvariable);
$num = "3.14";
$int = (int)$num;
$myintvariable = intval($myvariable);