Answers for "php array to int"

PHP
0

php convert string to int in array

$array = ["123", "34", "223"];
$integerIDs = array_map('intval', $array);
Posted by: Guest on March-09-2022
8

php to int

$num = "3.14";
$int = (int)$num;
Posted by: Guest on April-13-2020
2

php convert string to int in array

$integerIDs = array_map('intval', explode(',', $string));
Posted by: Guest on September-15-2020
0

php numeric array

Array
(
    [0] => earth projection
    [1] => landslide
    [2] => earthquake
    [3] => tremor
    [4] => rockfall
)
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language