migration51.integer-parameters.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 31 行

HTML
31
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Integer values in function parameters</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration51.reading.html">Reading []</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration51.oop.html">Class and object changes</a></div> <div class="up"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="migration51.integer-parameters" class="section">  <h2 class="title">Integer values in function parameters</h2>  <p class="para">   With the advent of PHP 5.0.x, a new parameter parsing API was introduced   which is used by a large number of PHP functions. In all versions of PHP   between 5.0.x and 5.1.x, the handling of integer values was very strict and   would reject non-well formed numeric values when a PHP function expected an   integer. These checks have now been relaxed to support non-well formed   numeric strings such as &quot; 123&quot; and &quot;123 &quot;, and will no longer fail as they   did under PHP 5.0.x. However, to promote code safety and input validation,   PHP functions will now emit an <b><tt>E_NOTICE</tt></b> when such   strings are passed as integers.  </p> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration51.reading.html">Reading []</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration51.oop.html">Class and object changes</a></div> <div class="up"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?