admin 发表于 2023-2-16 18:55:05

PHP intdiv() 函数

<div id="article_content" class="article_content clearfix">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/kdoc_html_views-1a98987dfd.css">
      <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-6e43165c0a.css">
                <div id="content_views" class="htmledit_views">
                  <p>PHP 7 新增加了 intdiv() 函数&#xff0c;接收两个参数&#xff0c;返回值为第一个参数除于第二个参数的值并取整。</p>
<p>实例</p>
<blockquote>
<p><?php<br> echo intdiv(9,3),PHP_EOL;<br> echo intdiv(10,3),PHP_EOL;<br> echo intdiv(5,10),PHP_EOL;<br> ?></p>
</blockquote>
<p>以上程序执行的输出结果</p>
<pre>3
3
0</pre>
                </div>
      </div>
      <div id="treeSkill"></div>
页: [1]
查看完整版本: PHP intdiv() 函数