diff --git a/language/types/string.xml b/language/types/string.xml index a514d7023e..c11e77ea78 100644 --- a/language/types/string.xml +++ b/language/types/string.xml @@ -1,5 +1,5 @@ - + Strings @@ -797,9 +797,11 @@ $str[strlen($str)-1] = 'e'; - The string will be evaluated as a float if it - contains any of the characters '.', 'e', or 'E'. Otherwise, it will be - evaluated as an integer. + If the string does not contain any of the characters '.', 'e', + or 'E' and implied numeric value fits into integer type limits (as defined by + PHP_INT_MAX), the string will be evaluated + as an integer. In all other cases it will be evaluated as a + float.