WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML


 

PHP 7 Integer Division




PHP 7 presents another capacity intdiv(), which performs number division of its operands and return the division as int.

Example

<?php 

$value = intdiv(10,3); 

var_dump($value); 

print(" "); 

print($value); 

?>

It produces the accompanying program yield −

int(3) 

3