Deprecated notice for preg_match
-
My PHP version is 8.1.23?and I am seeing a deprecated notice. I have adapted this code and it got resolved but please fix it in the next update:
/** * Check if key is valid * * @param $key * * @return bool */ public static function keyIsValid( $key ) { return is_string( $key ) && ! preg_match( '/[^\p{L}\p{N}\:\.\_\s\-]+/u', $key ); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Deprecated notice for preg_match’ is closed to new replies.