Skip to main content

intval

Function intval 

Source
pub fn intval(value: Arg<'_>, base: i64) -> i64
Expand description

PHP intval($value, $base): Arg::to_int unless value is a string and base is not 10; then C strtol with that base, where bases 0 and 2 also accept a 0b prefix (after whitespace and a sign).