PHP | rawurldecode() function Last Updated : 09 Nov, 2022 Comments Improve Suggest changes Like Article Like Report The rawurldecode() function is an inbuilt function in PHP which is used to decode the encoded string. This function returns the decoded URL (original URL string) as a string. This function replaces the % sign followed by two hex value with literal characters. Syntax: string rawurldecode( $str ) Parameters: This function accepts single parameters $str which is mandatory. It is used to store the encoded URL. Return Value: This function returns the decode URL string. Below programs illustrate the rawurldecode() function in PHP. Program 1: php <?php echo rawurldecode("A%20computer%20science%20portal%20for%20geek"); ?> Output: A computer science portal for geek Program 2: php <?PHP $str = 'GeeksforGeeks A computer science portal for geek'; // Encode the given string $encode_str = rawurlencode($str); echo "Encoded string: " . $encode_str . "<br>"; // Decode the encoded string $decode_str = rawurldecode($encode_str); echo "Decoded string: " . $decode_str; ?> Output: Encoded string: GeeksforGeeks%20A%20computer%20science%20portal%20for%20geekDecoded string: GeeksforGeeks A computer science portal for geek Related Articles: PHP | base64_encode() Function PHP | base64_decode() Function Reference: http://php.net/manual/en/function.rawurldecode.php Comment More infoAdvertise with us Next Article PHP | rawurldecode() function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP PHP-function Practice Tags : Misc Similar Reads PHP | rawurlencode() function The rawurlencode() function is an inbuilt function in PHP which is used to encode the URL(Uniform Resource Locator) according to RFC(Uniform Resource Identifier) 3986. Syntax: string rawurlencode( $str ) Parameters: This function accepts single parameters $str which is mandatory. It is used to store 1 min read PHP | urldecode() Function The urldecode() function is an inbuilt function in PHP which is used to decode url that is encoded by the encode () function. Syntax:string urldecode( $input )Parameters: This function accepts a single parameter $input which holds the url to be decoded. Return Value: This function returns the decode 1 min read PHP urlencode() Function The urlencode() function is an inbuilt PHP function used to encode the URL. This function returns a string consisting of all non-alphanumeric characters exceptâ_. It is replaced by the percent (%) sign, followed by two hex digits and spaces encoded as plus (+) signs. Syntax:string urlencode( $input 1 min read PHP | ftp_raw() function The ftp_raw() function is an inbuilt function in PHP which is used to send a raw command to the Remote server i.e. FTP Server. Syntax:Â ftp_raw( $ftp_connection, $command ) Parameters: This function accepts two parameters as mentioned above and described below:Â Â $ftp_connection: It is required para 2 min read PHP | parse_url() Function The parse_url() function is an inbuilt function in PHP which is used to return the components of a URL by parsing it. It parses an URL and return an associative array which contains its various components. Syntax: parse_url( $url, $component = -1 ) Parameters: This function accepts two parameters as 2 min read Like