Code added by apphp-snippets

View apphp-snippets's profile
Base64 Encode and Decode String in PHP

Encodes the given data with MIME base64. Base64-encoded data takes about 33% more space than…

Remove Last Character from String in PHP

This is a very common PHP question of HOW TO remove last character from string…

Highlight PHP Code

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code…

Send Mail using mail function in PHP

The mail() function allows you to send emails directly from a script. Remember, that most…

Get short urls for Twitter with PHP

If you work with Twitter, you probably use a url shortener such as or…

Highlight specific words in a phrase with PHP

You may use this code to highlight specific words in your displaying search results.

SEO friendly links in PHP

This code removes all special characters from the given URL and make it SEO friendly.

HTTP Redirection in PHP

Allows to perform PHP redirection (must be placed before any browser output).

Unzip a Zip File

This code allows you to Unzip a ZIP file with PHP.

Detect Browser with PHP

Helps to find out browser version and type your website visitor is using.