php řetězec do int
intval($string);
cast string do int php
$num = "3.14";
$int = (int)$num;//string to int
$float = (float)$num;//string to float
php na int
$num = "3.14";
$int = (int)$num;
Typ php na int
$num = "3.14";
$int = (int)$num;
$float = (float)$num;
transformace řetězce na celé číslo v php
Using intval() and floatval() Function. The intval() and floatval() functions can also be used to convert the string into its corresponding integer and float values respectively. echo floatval ( $num );
php str to int
intval("15");