开发者

Php: Function to replace all chars except valid RFC 3986

开发者 https://www.devze.com 2023-01-30 04:38 出处:网络
Looking for a simple validation script that will replace all chars in a string except RFC 3986 valid chars

Looking for a simple validation script that will replace all chars in a string except RFC 3986 valid chars

A-Z, a-z开发者_如何学C, 0-9, -, ., _, ~, :, /, ?, #, [, ], @, !, $, &, ', (, ), *, +, ,, ; and =. Also any other character needs to be encoded with the percent-encoding (%hh)


rawurlencode()

0

精彩评论

暂无评论...
验证码 换一张
取 消