PHP: Useful Encoding and decoding Functions You Need to Know

Raksha - May 19 '22 - - Dev Community

As a developer, we are dealing with encoding and decoding very often.

With PHP, like any other language, we can do encoding or decoding on any type of string, HTML entities, json object, or URL.

PHP is providing various built-in functions for that. But sometimes we might not be aware of those functions.

7 important and useful ways to use encoding or decoding functions explained with examples.

  1. HTML
  2. UUEncode (Unit-to-Unix-Encoding)
  3. URL
  4. Base64
  5. JSON
  6. ROT13
  7. UTF8

You can also check the full article on — canopas blog.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .