Base64::Decode
- Base64::Decode(string, encoding=null): String
-
Decode base64 encoded string. Accepts string to decode and optional character encoding. Valid character encodings are "UTF-8", "UCS-2", "UCS-4", "SYSTEM". Default is UTF-8.
Table 1. Parameters string
String
String to decode
encoding
String
String encoding. Optional parameter.
ReturnDecoded string, or
nullif input is not valid base64.print(Base64::Decode("U29tZSB0ZXh0")); //Will print "Some text"