- PHP

How to make INT from String in PHP?

Use the intval() function.

intval($string);

Example:

<?php

$string = '55';
$num = intval($string);

echo $num * 2;

?>

Output: 110