Faça uma corda fundida para int php
$num = "3.14";
$int = (int)$num;//string to int
$float = (float)$num;//string to float
Sam
$num = "3.14";
$int = (int)$num;//string to int
$float = (float)$num;//string to float
<script> var p = "Hai"; alert(p);</scr