Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions reference/var/functions/intval.xml
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,23 @@ echo intval(true), PHP_EOL; // 1
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
The <parameter>base</parameter> parameter has no effect unless the
<parameter>value</parameter> parameter is a string.
</para>
</note>
</refsect1>
&reftitle.notes;
<note>
<para>
The <parameter>base</parameter> parameter has no effect unless the
<parameter>value</parameter> parameter is a string.
</para>
</note>
<note>
<para>
When converting strings that contain scientific notation (for example,
"42.42e42"), <function>intval()</function> may return
<constant>PHP_INT_MAX</constant> due to integer overflow. This occurs
when the parsed numeric value exceeds the maximum integer size supported
by the platform.
</para>
</note>
</refsect1>

<refsect1 role="seealso">
&reftitle.seealso;
Expand Down
11 changes: 11 additions & 0 deletions reference/var/functions/is-numeric.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@
</informaltable>
</refsect1>

<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
Strings containing numbers in scientific notation (for example,
<literal>"1e3"</literal> or <literal>"42e2"</literal>) are considered
numeric by <function>is_numeric</function>.
</para>
</note>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<para>
Expand Down