PHP Strings Primer - Handling URLs and Base64-encoding
(Page 30 of 37 )
Dealing with URLs and email is a common task in PHP. In this section, we will show you how to parse a URL into its individual parts, properly pass data through a URL, and prepare data for transmission through email. The functions that will be covered are as follows:
parse_url(url) -Using this function, we can break a URL down into its individual components.urlencode(string) -This function will convert applicable non-alphanumeric characters into a format acceptable for passing the data through a URL.urldecode(string) -Any encoding done with urlencode can be reversed with this function.base64_encode(string) -Preparing binary data for transmission in an email is done with this function.base64_decode(string) -This function will decipher the data encoded with 'base64_encode'.
Next: Parsing URLs >>
More Programming Basics Articles
More By Matt Wade