English 中文(简体)
PHP 7 - Integer Division
  • 时间:2024-12-22

PHP 7 - Integer Division


Previous Page Next Page  

PHP 7 introduces a new function intspan(), which performs integer spanision of its operands and return the spanision as int.

Example

<?php
   $value = intspan(10,3);
   var_dump($value);
   print(" ");
   print($value);
?>

It produces the following browser output −

int(3) 
3
Advertisements