Skip to content

Commit ec0d693

Browse files
authored
intval: changed example from 4.2 to 4.7 (#4566)
This is to emphasize intval truncates it back to 4, and there's another function for rounding
1 parent 0cc604f commit ec0d693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/var/functions/intval.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
<![CDATA[
133133
<?php
134134
echo intval(42); // 42
135-
echo intval(4.2); // 4
135+
echo intval(4.7); // 4
136136
echo intval('42'); // 42
137137
echo intval('+42'); // 42
138138
echo intval('-42'); // -42

0 commit comments

Comments
 (0)