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 | show_source() Function The show_source() function is an inbuilt function in PHP which is used to return a file with the PHP syntax highlighted. The syntax is highlighted by using HTML tags. Syntax: show_source( $filename, $return ) Parameters: This function accepts two parameters as mentioned above and described below: $f 2 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 PHP | unpack() Function The unpack() function is an inbuilt function in PHP which is used to unpack from a binary string into the respective format. Syntax: array unpack( $format, $data, $offset ) Parameters: This function accepts three parameters as mentioned above and described below: $format: It is required parameter. I 3 min read PHP mb_strlen() Function The mb_strlen() is an inbuilt PHP function that returns the string length in an integer. Syntax: mb_strlen($string, $encoding ): intParameters: This function accepts 2 parameters that are described below: $string: The string parameter whose lengths need to be determined. It is a required parameter.$ 1 min read PHP | random_bytes () Function The random_bytes()is an inbuilt function in PHP. The main function is to generate cryptographically secure pseudo-random bytes. It generates cryptographic random bytes of arbitrary string length. The different sources of randomness used in this function, they are as follows:- Window : CryptGenRandom 1 min read PHP mb_strtolower() Function The mb_strtolower() is a PHP inbuilt function that returns lowercase alphanumeric characters. Syntax: mb_strtolower(string $string, ?string $encoding = null): stringParameters: This function accepts 2 parameters: string: This parameter specifies the lowercase string.encoding: This parameter denotes 1 min read Like