Answers for "int value php"

PHP
3

convert to int php

$myintvariable = intval($myvariable);
Posted by: Guest on February-16-2020
1

define int variable in php

<?php
$x = 5985;
var_dump(is_int($x));

$x = 59.85;
var_dump(is_int($x));
?>
Posted by: Guest on November-27-2020
0

php "?int"

// ? means $count can be NULL or integer, maybe PHP >=7.4
private ?int $count
Posted by: Guest on January-01-2021
-2

convert string to int php

intval ( mixed $var [, int $base = 10 ] ) : int
Posted by: Guest on March-14-2020

Browse Popular Code Answers by Language