Answers for "convertir en int php"

PHP
43

php string to int

intval($string);
Posted by: Guest on February-20-2020
6

convert int to string php

$var = 5;

// Inline variable parsing
echo "I'd like {$var} waffles"; // = "I'd like 5 waffles

// String concatenation 
echo "I'd like ".$var." waffles"; // I'd like 5 waffles

// Explicit cast 
$items = (string)$var; // $items === "5";

// Function call
$items = strval($var); // $items === "5";
Posted by: Guest on November-20-2019
3

convert to int php

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

string to int php

$str = "10";
$num = (int)$str;
Posted by: Guest on December-17-2020
-2

convert string to int php

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

Code answers related to "convertir en int php"

Browse Popular Code Answers by Language