Skip to main content

loose_str_eq

Function loose_str_eq 

Source
pub fn loose_str_eq(a: &[u8], b: &[u8]) -> bool
Expand description

PHP $a == $b for two strings (zendi_smart_str_equals): two numeric strings compare as numbers, anything else byte for byte. Numeric strings are ASCII, so a string that is not UTF-8 only equals itself.