注意官方手册中文版本和英文版本是一致的。
英文版多了一句注视的话,在使用intval时,如果参数为字符串,将根据字符串的开始的部分来做判定。
Strings will most likely return 0 although this depends on the leftmost characters of the string.
intval('1a') 输出1;
intval('0a')输出0;
intval('a')输出0;
注意官方手册中文版本和英文版本是一致的。英文版多了一句注视的话,在使用intval时,如果参数为字符串,将根据字符串的开始的部分来做判定。Strings will most likely return 0 although this depends on the leftmost characters of the string. intval('1a') ...
注意官方手册中文版本和英文版本是一致的。
英文版多了一句注视的话,在使用intval时,如果参数为字符串,将根据字符串的开始的部分来做判定。
Strings will most likely return 0 although this depends on the leftmost characters of the string.
intval('1a') 输出1;
intval('0a')输出0;
intval('a')输出0;
评论
0成为第一个留下想法的人。