rawurlencode

PHP 4, PHP 5, PHP 7, PHP 8
rawurlencode - URL-encode according to RFC 3986

Example #1 including a password in an FTP URL

Result: <a href="ftp://user:foo%20%40%2B%25%2F@ftp.example.com/x.txt">
PHP Version:

Example #2 rawurlencode example 2

Result: <a href="http://example.com/department_list_script/sales%20and%20marketing%2FMiami">
PHP Version:


Example #3 of rawurlencode

PHP Version:


Function rawurlencode:

URLs Functions

Most used PHP functions